From: Sebastien GODARD Date: Sun, 30 Jan 2022 14:16:51 +0000 (+0100) Subject: A_IRQ: Check if CPU "all" should be displayed X-Git-Tag: v12.5.6~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b10dd899fe650863144233e31190516a932162b;p=sysstat A_IRQ: Check if CPU "all" should be displayed Don't forget CPU "all" when checking which CPU have been selected and should be displayed. Signed-off-by: Sebastien GODARD --- diff --git a/sa_common.c b/sa_common.c index b9ba8c6..9b2d0c1 100644 --- a/sa_common.c +++ b/sa_common.c @@ -3293,7 +3293,7 @@ void get_global_int_statistics(struct activity *a, int prev, int curr, int i; struct stats_irq *stc_cpu_sum, *stp_cpu_sum; - for (i = 1; (i < a->nr_ini) && (i < a->bitmap->b_size + 1); i++) { + for (i = 0; (i < a->nr_ini) && (i < a->bitmap->b_size + 1); i++) { /* * The size of a->buf[...] CPU structure may be different from the default