From 587a53b904f2365c49f7718d6392cd65bf891e66 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 30 Jun 2010 21:00:48 +0200 Subject: [PATCH] Disable per second counters as they are unreliable. --- src/decode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/decode.c b/src/decode.c index da932cee65..d9e02a2be6 100644 --- a/src/decode.c +++ b/src/decode.c @@ -135,17 +135,21 @@ void DecodeRegisterPerfCounters(DecodeThreadVars *dtv, ThreadVars *tv) /* register counters */ dtv->counter_pkts = SCPerfTVRegisterCounter("decoder.pkts", tv, SC_PERF_TYPE_UINT64, "NULL"); +#if 0 dtv->counter_pkts_per_sec = SCPerfTVRegisterIntervalCounter("decoder.pkts_per_sec", tv, SC_PERF_TYPE_DOUBLE, "NULL", "1s"); +#endif dtv->counter_bytes = SCPerfTVRegisterCounter("decoder.bytes", tv, SC_PERF_TYPE_UINT64, "NULL"); +#if 0 dtv->counter_bytes_per_sec = SCPerfTVRegisterIntervalCounter("decoder.bytes_per_sec", tv, SC_PERF_TYPE_DOUBLE, "NULL", "1s"); dtv->counter_mbit_per_sec = SCPerfTVRegisterIntervalCounter("decoder.mbit_per_sec", tv, SC_PERF_TYPE_DOUBLE, "NULL", "1s"); +#endif dtv->counter_ipv4 = SCPerfTVRegisterCounter("decoder.ipv4", tv, SC_PERF_TYPE_UINT64, "NULL"); dtv->counter_ipv6 = SCPerfTVRegisterCounter("decoder.ipv6", tv,