projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1b460a
)
cpu plugin: Collectd CPU `steal time' as reported by new Linux kernels.
author
Florian Forster
<octo@huhu.verplant.org>
Thu, 5 Apr 2007 13:23:11 +0000
(15:23 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Thu, 5 Apr 2007 13:23:11 +0000
(15:23 +0200)
src/cpu.c
patch
|
blob
|
history
diff --git
a/src/cpu.c
b/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]));
}
}