From 95e06f1062584a64311442d042b13e044e87d175 Mon Sep 17 00:00:00 2001 From: Maryam Tahhan Date: Sun, 3 Apr 2016 10:35:23 +0100 Subject: [PATCH] dpdkstat: bugfix enable_port_count Signed-off-by: Maryam Tahhan Signed-off-by: Harry van Haaren --- src/dpdkstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dpdkstat.c b/src/dpdkstat.c index 27e2d397..8bb8ef9b 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -509,7 +509,8 @@ static int dpdk_helper_run (void) i, len); return -1; } - num_xstats += g_configuration->num_stats_in_port[i]; + num_xstats += g_configuration->num_stats_in_port[enabled_port_count]; + enabled_port_count++; } } /* if (enabled_port_mask) */ } /* for (nb_ports) */ -- 2.11.0