From: Maryam Tahhan Date: Sun, 3 Apr 2016 09:35:23 +0000 (+0100) Subject: dpdkstat: bugfix enable_port_count X-Git-Tag: collectd-5.7.0~73^2~28 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95e06f1062584a64311442d042b13e044e87d175;p=collectd.git dpdkstat: bugfix enable_port_count Signed-off-by: Maryam Tahhan Signed-off-by: Harry van Haaren --- 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) */