Code

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 1dc78657ad2fe4e01b8fdfaaf3cb2ee06e75d310..db784746ac86162789abc6d8027086aed982b7e6 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]));
                }
        }