From bc5b7c5999b49353b720fa8ceb3c0542521cab5d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 9 Jun 2013 12:43:15 +0200 Subject: 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 --- ifpps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ifpps.c') 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]; -- cgit v1.2.3-54-g00ecf