Increase NR2_MAX value
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 9 Mar 2022 15:57:36 +0000 (16:57 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 9 Mar 2022 15:57:36 +0000 (16:57 +0100)
This value is the upper bound for @nr2 value. Increase it to 4096
since it is now used for A_IRQ activity as the highest possible value
for the number of interrupts.

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

diff --git a/sa.h b/sa.h
index 8acdf9371a0dbb379f13966e6115db67a4f0fece..86b857f00f5f31b584e502d61b782f97abce107b 100644 (file)
--- a/sa.h
+++ b/sa.h
 
 /* NR_MAX is the upper limit used for unknown activities */
 #define NR_MAX         (65536 * 4096)
-#define NR2_MAX                1024
+#define NR2_MAX                4096
 
 /* Maximum number of args that can be passed to sadc */
 #define MAX_ARGV_NR    32