From: Victor Julien Date: Tue, 16 Feb 2016 15:45:01 +0000 (+0100) Subject: counters: fix thread stats delta logging X-Git-Tag: suricata-3.0.1RC1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c30f7bdbb476da74186dad11c40b75930ef71e9;p=thirdparty%2Fsuricata.git counters: fix thread stats delta logging Just like with the global stats, store prev values. Fixes delta logging. --- diff --git a/src/counters.c b/src/counters.c index 887fd7ca99..05059ef96b 100644 --- a/src/counters.c +++ b/src/counters.c @@ -704,6 +704,9 @@ static int StatsOutput(ThreadVars *tv) uint32_t offset = (thread * stats_table.nstats) + c; StatsRecord *r = &stats_table.tstats[offset]; + /* xfer previous value to pvalue and reset value */ + r->pvalue = r->value; + r->value = 0; r->name = table[c].name; r->tm_name = sts->name;