1
0
Fork 0
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:
Steve Schnepp 2015-03-03 23:17:23 +00:00
parent 16b017fcd7
commit 79f72b87fb

View file

@ -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);
}