summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-06-09 12:43:15 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-06-09 12:43:15 +0200
commitbc5b7c5999b49353b720fa8ceb3c0542521cab5d (patch)
tree4001450ca8e84efd25b9a8ea32afcd8cdb6f24c8
parent018c335234541592924885a0229e2afd716608ef (diff)
ifpps: Rename cpu number parameter to stats_top()
This is not the top number of CPUs but the total number. Rename the variable to not confuse this. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--ifpps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ifpps.c b/ifpps.c
index c23ac8e..53e61aa 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -626,11 +626,11 @@ static int cmp_irqs_abs(const void *p1, const void *p2)
}
static void stats_top(const struct ifstat *rel, const struct ifstat *abs,
- int top_cpus)
+ int cpus)
{
int i;
- for (i = 0; i < top_cpus; ++i) {
+ for (i = 0; i < cpus; ++i) {
cpu_hits[i].idx = i;
cpu_hits[i].hit = rel->cpu_user[i] + rel->cpu_nice[i] + rel->cpu_sys[i];
cpu_hits[i].irqs_rel = rel->irqs[i];