mirror of https://github.com/OISF/suricata
pcap: fix stats dump logic
pcap has a callback function that is called for each packet. Once a second, it's meant to 'dump stats'. However, the timing logic was broken, so it would actually dump stats for each packet. By moving the stats second timer into the thread vars, next calls of the callback will be able to use the stored time.pull/694/head
parent
9e85b8d35e
commit
0beb7ed781
Loading…
Reference in New Issue