X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdpdkstat.c;h=8bb8ef9bdfc2b266cfe81d481e1068a6146d30dc;hb=95e06f1062584a64311442d042b13e044e87d175;hp=27e2d39770785b15723cd9d6d51d841b894f5440;hpb=d6198411d285aa8d7baad403ac3e142e5aeba75f;p=collectd.git 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) */