2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

fix cpu.c config for more recent kernels

It still lacks behind the vanilla cpu plugin.
This commit is contained in:
Helmut Grohne 2013-01-28 14:18:45 +01:00
parent 1956b4dd7b
commit b9c124798f

View File

@ -42,7 +42,7 @@ int cpu(int argc, char **argv) {
}
puts("graph_title CPU usage");
if(extinfo == 7)
if(extinfo >= 7)
puts("graph_order system user nice idle iowait irq softirq");
else
puts("graph_order system user nice idle");
@ -87,7 +87,7 @@ int cpu(int argc, char **argv) {
"user.cdef user,%d,/\n"
"nice.cdef nice,%d,/\n"
"idle.cdef idle,%d,/\n", ncpu, ncpu, ncpu, ncpu);
if(extinfo == 7) {
if(extinfo >= 7) {
puts("iowait.label iowait\n"
"iowait.draw STACK\n"
"iowait.min 0");