summaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/counters.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dev/counters.c')
-rw-r--r--src/vnet/dev/counters.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/dev/counters.c b/src/vnet/dev/counters.c
index 0a1e0a7419d..d02839d664f 100644
--- a/src/vnet/dev/counters.c
+++ b/src/vnet/dev/counters.c
@@ -54,7 +54,7 @@ vnet_dev_counters_clear (vlib_main_t *vm, vnet_dev_counter_main_t *cm)
{
for (int i = 0; i < cm->n_counters; i++)
{
- cm->counter_start[i] = cm->counter_data[i];
+ cm->counter_start[i] += cm->counter_data[i];
cm->counter_data[i] = 0;
}
}