mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
irqstats: rework previous commit to make shellcheck happy
Tested on dash/bash/busybox.
This commit is contained in:
parent
4c53449fa3
commit
b2ca6a4b8a
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ fetch_irqstats() {
|
||||||
VALUE=0
|
VALUE=0
|
||||||
for VAL in $VALS;
|
for VAL in $VALS;
|
||||||
do
|
do
|
||||||
VALUE=$((VALUE + $VAL))
|
if [ "$VAL" -eq "$VAL" ] 2> /dev/null; then
|
||||||
|
VALUE=$((VALUE + VAL))
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
echo "i$ID.value $VALUE"
|
echo "i$ID.value $VALUE"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue