mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
multicpu1sec-c: fix value (remove idle)
This commit is contained in:
parent
16b017fcd7
commit
79f72b87fb
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ int acquire() {
|
|||
long usr, nice, sys, idle, iowait, irq, softirq;
|
||||
sscanf(buffer, "%s %ld %ld %ld %ld %ld", cpu_id, &usr, &nice, &sys, &idle, &iowait, &irq, &softirq);
|
||||
|
||||
long used = usr + nice + sys + idle + iowait + irq + softirq;
|
||||
long used = usr + nice + sys + iowait + irq + softirq;
|
||||
|
||||
fprintf(cache_file, "%s.value %ld:%ld\n", cpu_id, epoch, used);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue