diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-11 09:49:11 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-11 09:49:11 +0200 |
commit | 760f5b49a49c4b244a2da06a4123f884d891f8f6 (patch) | |
tree | 167056a41fe1c0e95485d91ca63bea0def4ee1f2 | |
parent | 4f42ef17be2bba0e3ed997d478beb596e5e57e0a (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>
-rw-r--r-- | ifpps.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |