From 167980f21e7f46b0e90d47486dc9586a80c57db6 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 8 Feb 2009 15:36:58 +0100 Subject: [PATCH] cpu plugin: Report interrupt separately when using sysctlbyname. --- src/cpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpu.c b/src/cpu.c index 9a565c57..da0a3b01 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -376,12 +376,11 @@ static int cpu_read (void) return (-1); } - cpuinfo[CP_SYS] += cpuinfo[CP_INTR]; - submit (0, "user", cpuinfo[CP_USER]); submit (0, "nice", cpuinfo[CP_NICE]); submit (0, "system", cpuinfo[CP_SYS]); submit (0, "idle", cpuinfo[CP_IDLE]); + submit (0, "interrupt", cpuinfo[CP_INTR]); /* #endif HAVE_SYSCTLBYNAME */ #elif defined(HAVE_LIBSTATGRAB) -- 2.11.0