From: Maryam Tahhan Date: Tue, 5 Apr 2016 09:48:04 +0000 (+0100) Subject: dpdkstat: bugfix missed enabled_port_count X-Git-Tag: collectd-5.7.0~73^2~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70cc129cd1916ff8d406e18d59ef1a80eb9d65d0;p=collectd.git dpdkstat: bugfix missed enabled_port_count Signed-off-by: Maryam Tahhan Reviewed-by: Harry Van Haaren --- diff --git a/src/dpdkstat.c b/src/dpdkstat.c index e451990d..096bfed2 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -503,7 +503,7 @@ static int dpdk_helper_run (void) len = g_configuration->num_stats_in_port[enabled_port_count]; g_configuration->port_read_time[enabled_port_count] = cdtime(); ret = rte_eth_xstats_get(i, &g_configuration->xstats + num_xstats, - g_configuration->num_stats_in_port[i]); + g_configuration->num_stats_in_port[enabled_port_count]); if (ret < 0 || ret != len) { DEBUG("dpdkstat-helper: Error reading xstats on port %d len = %d\n", i, len);