mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
fix increment
This commit is contained in:
parent
940243a492
commit
4541f6b48a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user