projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dpdkstat: bugfix enable_port_count
[collectd.git]
/
src
/
dpdkstat.c
diff --git
a/src/dpdkstat.c
b/src/dpdkstat.c
index
27e2d39
..
8bb8ef9
100644
(file)
--- 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) */