fix increment

This commit is contained in:
Christian Rotzoll 2019-04-11 05:24:50 +01:00
parent 940243a492
commit 4541f6b48a

View File

@ -56,11 +56,11 @@ for (( n=0; n<15; ++n )); do
voltInt=${voltFloat/.*}
#echo "V -> ${voltFloat}/${voltInt}"
if [ ${voltInt} -lt 1200100 ] && [ ${powerWARN} -gt 1 ]; then
(powerFAIL=powerFAIL+1))
((powerFAIL=powerFAIL+1))
echo "--> Power FAIL detected" >&2
fi
if [ ${voltInt} -lt 1250000 ]; then
(powerWARN=powerWARN+1))
((powerWARN=powerWARN+1))
echo "--> Power WARN detected" >&2
fi
if [ ${voltInt} -lt ${powerMIN} ]; then
@ -72,11 +72,11 @@ for (( n=0; n<15; ++n )); do
tempInt=${tempFloat/.*}
#echo "T -> ${tempFloat}/${tempInt}"
if [ ${tempInt} -gt 6999 ]; then
(tempFAIL=tempFAIL+1))
((tempFAIL=tempFAIL+1))
echo "--> Temp FAIL detected" >&2
fi
if [ ${tempInt} -gt 6500 ]; then
(tempWARN=tempWARN+1))
((tempWARN=tempWARN+1))
echo "--> Temp WARN detected" >&2
fi
if [ ${tempInt} -gt ${tempMAX} ]; then