mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
p/cpu_: fix test for guest_nice emptyness
The simple "=" is prefered to the "==" one, as we don't need to test numeric values.
This commit is contained in:
parent
83df6155fa
commit
b7f5c3fd06
@ -87,9 +87,7 @@ emit_values()
|
|||||||
{
|
{
|
||||||
while read key user nice system idle iowait irq softirq steal guest guest_nice
|
while read key user nice system idle iowait irq softirq steal guest guest_nice
|
||||||
do
|
do
|
||||||
if [ "$guest_nice" == "" ]; then
|
[ "$guest_nice" = "" ] && guest_nice=0
|
||||||
guest_nice=0
|
|
||||||
fi
|
|
||||||
[ "$key" != "$1" ] && continue
|
[ "$key" != "$1" ] && continue
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
system.value $system
|
system.value $system
|
||||||
|
Loading…
Reference in New Issue
Block a user