Code

cpu plugin: Fix parsing of SoftIRQ under Linux.
authorFlorian Forster <octo@collectd.org>
Mon, 15 Sep 2014 17:21:22 +0000 (19:21 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 15 Sep 2014 17:21:22 +0000 (19:21 +0200)
src/cpu.c

index 1ab1e6ec817640864de03898d63127919ed0b248..b4ceff64ce40dba8a51d88d14a028f5eefc25a3a 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -642,7 +642,7 @@ static int cpu_read (void)
                {
                        derives[CPU_SUBMIT_WAIT] = atoll(fields[5]);
                        derives[CPU_SUBMIT_INTERRUPT] = atoll(fields[6]);
-                       derives[CPU_SUBMIT_SOFTIRQ] = atoll(fields[6]);
+                       derives[CPU_SUBMIT_SOFTIRQ] = atoll(fields[7]);
 
                        if (numfields >= 9)
                                derives[CPU_SUBMIT_STEAL] = atoll(fields[8]);