cpu plugin: Report interrupt separately when using sysctlbyname.
authorFlorian Forster <octo@huhu.verplant.org>
Sun, 8 Feb 2009 14:36:58 +0000 (15:36 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Sun, 8 Feb 2009 14:38:26 +0000 (15:38 +0100)
src/cpu.c

index 9a565c5..da0a3b0 100644 (file)
--- 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)