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:
parent
1956b4dd7b
commit
b9c124798f
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ int cpu(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
puts("graph_title CPU usage");
|
puts("graph_title CPU usage");
|
||||||
if(extinfo == 7)
|
if(extinfo >= 7)
|
||||||
puts("graph_order system user nice idle iowait irq softirq");
|
puts("graph_order system user nice idle iowait irq softirq");
|
||||||
else
|
else
|
||||||
puts("graph_order system user nice idle");
|
puts("graph_order system user nice idle");
|
||||||
|
@ -87,7 +87,7 @@ int cpu(int argc, char **argv) {
|
||||||
"user.cdef user,%d,/\n"
|
"user.cdef user,%d,/\n"
|
||||||
"nice.cdef nice,%d,/\n"
|
"nice.cdef nice,%d,/\n"
|
||||||
"idle.cdef idle,%d,/\n", ncpu, ncpu, ncpu, ncpu);
|
"idle.cdef idle,%d,/\n", ncpu, ncpu, ncpu, ncpu);
|
||||||
if(extinfo == 7) {
|
if(extinfo >= 7) {
|
||||||
puts("iowait.label iowait\n"
|
puts("iowait.label iowait\n"
|
||||||
"iowait.draw STACK\n"
|
"iowait.draw STACK\n"
|
||||||
"iowait.min 0");
|
"iowait.min 0");
|
||||||
|
|
Loading…
Reference in a new issue