summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifpps.c b/ifpps.c
index 5e4b5b0..3dbb337 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -164,7 +164,7 @@ static void stats_alloc(struct ifstat *stats, int cpus)
}
#define STATS_ZERO1(member) \
- do { memset(stats->member, 0, sizeof(*(stats->member))); } while (0)
+ do { memset(stats->member, 0, cpus * sizeof(*(stats->member))); } while (0)
static void stats_zero(struct ifstat *stats, int cpus)
{