]> granicus.if.org Git - sysstat/commitdiff
Fix maximum value for A_IRQ activity
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 9 Mar 2022 16:02:43 +0000 (17:02 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 9 Mar 2022 16:02:43 +0000 (17:02 +0100)
@nr_max is the upper bound associated with the number of CPU, not the
number of interrupts.

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

index bd6c3950adcf2b47cd5cd174ff32c855434fa522..eff8ba128588c5049b6ba04e846fcfae3db51eac 100644 (file)
@@ -189,7 +189,7 @@ struct activity irq_act = {
        .g_nr           = 0,
        .nr_ini         = -1,
        .nr2            = -1,
-       .nr_max         = NR_IRQS + 1,
+       .nr_max         = NR_CPUS + 1,
        .nr             = {-1, -1, -1},
        .nr_allocated   = 0,
        .fsize          = STATS_IRQ_SIZE,