]> git.ipfire.org Git - thirdparty/suricata.git/commit
stats: more accurate interval handling 3577/head
authorVictor Julien <victor@inliniac.net>
Sat, 8 Dec 2018 17:51:23 +0000 (18:51 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 10 Dec 2018 13:32:27 +0000 (14:32 +0100)
commit31f81429c20680806896efa2df0fdb29324d78ff
treeb187720636f4c017cd8369136ebd4433e6c5ebe9
parentc1238af3e0f5aafc792ca8c9d2e20d09dc8b3323
stats: more accurate interval handling

In the stats loop sleep for a time period more closely matching
the stats.interval setting. Fix an off by one that would make
the loop wake up ~1 second early.

Bug #2716
src/counters.c
src/util-time.h