diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-06-09 12:43:15 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-06-09 12:43:15 +0200 |
commit | bc5b7c5999b49353b720fa8ceb3c0542521cab5d (patch) | |
tree | 4001450ca8e84efd25b9a8ea32afcd8cdb6f24c8 | |
parent | 018c335234541592924885a0229e2afd716608ef (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]; |