Fixed begin/end type when capturing live traffic

This commit is contained in:
Luca
2017-11-03 17:15:04 +01:00
parent a488c9b7dc
commit c9f32ee76d
+2 -5
View File
@@ -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) {