mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51: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
|
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…
Add table
Add a link
Reference in a new issue