diff options
author | Luca <deri@ntop.org> | 2017-11-03 17:15:04 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2017-11-03 17:15:04 +0100 |
commit | c9f32ee76dbc5e323d321b088562df980d2f525f (patch) | |
tree | f3f777731de6b3dd9bdd74e0cbf295aa2f3491e3 | |
parent | a488c9b7dc6d1e08ef09f681349923853ff142ae (diff) |
Fixed begin/end type when capturing live traffic
-rw-r--r-- | example/ndpiReader.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 710839261..40153e168 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2301,11 +2301,8 @@ static void pcap_process_packet(u_char *args, return; } - /* Check if capture is live or not */ - if(!live_capture) { - if(!pcap_start.tv_sec) pcap_start.tv_sec = header->ts.tv_sec, pcap_start.tv_usec = header->ts.tv_usec; - pcap_end.tv_sec = header->ts.tv_sec, pcap_end.tv_usec = header->ts.tv_usec; - } + if(!pcap_start.tv_sec) pcap_start.tv_sec = header->ts.tv_sec, pcap_start.tv_usec = header->ts.tv_usec; + pcap_end.tv_sec = header->ts.tv_sec, pcap_end.tv_usec = header->ts.tv_usec; /* Idle flows cleanup */ if(live_capture) { |