]> granicus.if.org Git - sysstat/commitdiff
A_IRQ: Don't set name for "sum" interrupt
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 29 Jan 2022 14:32:16 +0000 (15:32 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 29 Jan 2022 14:32:16 +0000 (15:32 +0100)
The name "sum" is already saved as the interrupt name for the total
number of interrupts. So use that name.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
pr_stats.c

index 679405b993c9b864e1c03d0b9ac93725752e2555..e9023cf7620255558f580080f8cf3fe933344a73 100644 (file)
@@ -380,7 +380,7 @@ __print_funct_t print_irq_stats(struct activity *a, int prev, int curr,
                printf("%-11s", timestamp[curr]);
 
                if (!DISPLAY_PRETTY(flags)) {
-                       cprintf_in(IS_STR, " %9s", i ? stc_cpuall_irq->irq_name : "sum", 0);
+                       cprintf_in(IS_STR, " %9s", stc_cpuall_irq->irq_name, 0);
                }
 
                for (c = 0; (c < a->nr[curr]) && (c < a->bitmap->b_size + 1); c++) {
@@ -399,7 +399,7 @@ __print_funct_t print_irq_stats(struct activity *a, int prev, int curr,
                        cprintf_f(NO_UNIT, 1, 9, 2, S_VALUE(stp_cpu_irq->irq_nr, stc_cpu_irq->irq_nr, itv));
 
                        if (DISPLAY_PRETTY(flags)) {
-                               cprintf_in(IS_STR, " %9s", i ? stc_cpuall_irq->irq_name : "sum", 0);
+                               cprintf_in(IS_STR, " %9s", stc_cpuall_irq->irq_name, 0);
                        }
                }
                printf("\n");