summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-11 09:49:11 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-11 09:49:11 +0200
commit760f5b49a49c4b244a2da06a4123f884d891f8f6 (patch)
tree167056a41fe1c0e95485d91ca63bea0def4ee1f2 /ifpps.c
parent4f42ef17be2bba0e3ed997d478beb596e5e57e0a (diff)
ifpps: Remove unnecessary memset()
stats_avg will be reset to 0 on the first call to stats_top() before displaying any results, thus this memset() is not necessary. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ifpps.c b/ifpps.c
index 5328b03..6e7f403 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -1238,7 +1238,6 @@ int main(int argc, char **argv)
stats_alloc(&stats_delta, cpus);
cpu_hits = xzmalloc(cpus * sizeof(*cpu_hits));
- memset(&stats_avg, 0, sizeof(stats_avg));
if (promisc)
ifflags = enter_promiscuous_mode(ifname);