Update temp.inc.sh

This commit is contained in:
2023-12-14 22:12:57 -06:00
parent 2abd0b8607
commit 5dcb733bdf

View File

@@ -174,6 +174,7 @@ CHECKTEMPSENSOR(){
if [ "${1}" == "ServerRoomLA" ]; then
temp_probe_f=$(bc <<< "scale=1; ${temp_probe_c}*1.8+32")
echo "HERE: ${temp_probe_c} - ${temp_probe_f}"
if [ $(bc -l <<< "${temp_probe_f} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${temp_probe_f} < ${temp_crit}") -eq 1 ]; then
echo -en "${idsCL[Yellow]}WARNING ${spct}${temp_probe_f}${GAUGESH}${idsCL[Default]}"
elif [ $(bc -l <<< "${temp_probe_f} >= ${temp_crit}") -eq 1 ]; then