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

Update cpu_

some fixes for guest_nice
This commit is contained in:
rkarlsba 2014-03-09 19:45:54 +01:00
parent 5dcb693a27
commit 67525b295f

View File

@ -87,6 +87,9 @@ emit_values()
{
while read key user nice system idle iowait irq softirq steal guest guest_nice
do
if [ "$guest_nice" == "" ]; then
guest_nice=0
fi
[ "$key" != "$1" ] && continue
cat <<EOF
system.value $system
@ -98,6 +101,7 @@ irq.value $irq
softirq.value $softirq
steal.value $steal
guest.value $guest
guest_nice.value $guest_nice
EOF
done < /proc/stat
}