mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00: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
1 changed files with 1 additions and 3 deletions
|
@ -87,9 +87,7 @@ 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
|
||||
[ "$guest_nice" = "" ] && guest_nice=0
|
||||
[ "$key" != "$1" ] && continue
|
||||
cat <<EOF
|
||||
system.value $system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue