From 2a6aa00cd84462d10889c686c02b558f414786b6 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 15 Aug 2009 13:13:12 +0200 Subject: [PATCH] Use double for the avg counter. --- src/source-pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-pcap.c b/src/source-pcap.c index 38c7a88506..a4df56f785 100644 --- a/src/source-pcap.c +++ b/src/source-pcap.c @@ -333,7 +333,7 @@ int DecodePcapThreadInit(ThreadVars *tv, void *initdata, void **data) &tv->pctx, TYPE_Q_NONE, 1); PerfRegisterCounter("decoder.ppp", "DecodePcap", TYPE_UINT64, "NULL", &tv->pctx, TYPE_Q_NONE, 1); - PerfRegisterCounter("decoder.avg_pkt_size", "DecodePcap", TYPE_UINT64, "NULL", + PerfRegisterCounter("decoder.avg_pkt_size", "DecodePcap", TYPE_DOUBLE, "NULL", &tv->pctx, TYPE_Q_AVERAGE, 1); PerfRegisterCounter("decoder.max_pkt_size", "DecodePcap", TYPE_UINT64, "NULL", &tv->pctx, TYPE_Q_MAXIMUM, 1);