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