Browse Source

fix stresstest

v1.3
Christian Rotzoll 6 years ago
parent
commit
0d71913903
  1. 6
      home.admin/config.scripts/blitz.stresstest.sh

6
home.admin/config.scripts/blitz.stresstest.sh

@ -39,13 +39,13 @@ if [ ${raspberryPi} -lt 4 ]; then
# raspberryPi 3 and lower (microUSB power connector) # raspberryPi 3 and lower (microUSB power connector)
voltWARN=1230000 voltWARN=1230000
voltFAIL=1200100 voltFAIL=1200100
tempWARN=6500 tempWARNING=6500
tempCRTICAL=6999 tempCRTICAL=6999
else else
# raspberryPi 4 and up (USB-C power connector) # raspberryPi 4 and up (USB-C power connector)
voltWARN=871800 voltWARN=871800
voltFAIL=871800 voltFAIL=871800
tempWARN=7599 tempWARNING=7599
tempCRTICAL=7799 tempCRTICAL=7799
fi fi
@ -103,7 +103,7 @@ for (( n=0; n<15; ++n )); do
((tempFAIL=tempFAIL+1)) ((tempFAIL=tempFAIL+1))
echo "--> Temp CRITICAL detected" >&2 echo "--> Temp CRITICAL detected" >&2
fi fi
if [ ${tempInt} -gt ${tempWARN} ]; then if [ ${tempInt} -gt ${tempWARNING} ]; then
((tempWARN=tempWARN+1)) ((tempWARN=tempWARN+1))
echo "--> Temp WARN detected" >&2 echo "--> Temp WARN detected" >&2
fi fi

Loading…
Cancel
Save