cpu plugin: Collectd CPU `steal time' as reported by new Linux kernels.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 5 Apr 2007 13:23:11 +0000 (15:23 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 5 Apr 2007 13:23:11 +0000 (15:23 +0200)
src/cpu.c

index 1dc7865..db78474 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -339,6 +339,9 @@ static int cpu_read (void)
                        submit (cpu, "wait", wait);
                        submit (cpu, "interrupt", intr);
                        submit (cpu, "softirq", sitr);
+
+                       if (numfields >= 9)
+                               submit (cpu, "steal", atoll (fields[8]));
                }
        }