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 1ab1e6e..b4ceff6 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]);