Update temp.inc.sh
This commit is contained in:
@@ -172,7 +172,10 @@ CHECKTEMPSENSOR(){
|
|||||||
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
||||||
echo -e "${spc}[${spcw}${idsCL[Yellow]}${temp_warn}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit}${GAUGESH}=>${idsCL[Default]} ]"
|
echo -e "${spc}[${spcw}${idsCL[Yellow]}${temp_warn}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit}${GAUGESH}=>${idsCL[Default]} ]"
|
||||||
|
|
||||||
if [ "${1}" == "ServerRoomLA" ]; then
|
if [ "${1}" == "ServerRoomTH" ]; then
|
||||||
|
ServerRoomTH=${temp_f}
|
||||||
|
|
||||||
|
elif [ "${1}" == "ServerRoomLA" ]; then
|
||||||
temp_probe_f=$(bc <<< "scale=2; ${temp_probe_c}*1.8+32")
|
temp_probe_f=$(bc <<< "scale=2; ${temp_probe_c}*1.8+32")
|
||||||
tmp="${spct}${temp_probe_f}"
|
tmp="${spct}${temp_probe_f}"
|
||||||
c=0; spc=''; spc1=`expr 10 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
c=0; spc=''; spc1=`expr 10 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||||
@@ -203,10 +206,8 @@ CHECKTEMPSENSOR(){
|
|||||||
echo -en "${spc}[${spcw}${idsCL[Yellow]}${temp_warn}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit}${GAUGESH}=>${idsCL[Default]} ]"
|
echo -en "${spc}[${spcw}${idsCL[Yellow]}${temp_warn}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit}${GAUGESH}=>${idsCL[Default]} ]"
|
||||||
|
|
||||||
temp_difference=$(bc <<< "scale=2; ${ServerRoomTH}-${temp_probe_f}")
|
temp_difference=$(bc <<< "scale=2; ${ServerRoomTH}-${temp_probe_f}")
|
||||||
echo "${idsCL[LightCyan]} - TempDiff = ${temp_difference}'F${idsCL[Default]}"
|
echo "${idsCL[LightCyan]} - TempDiff = ${temp_difference}'F (${ServerRoomTH}-${temp_probe_f})${idsCL[Default]}"
|
||||||
else
|
|
||||||
[ "${1}" == "ServerRoomTH" ] && ServerRoomTH=${temp_f}
|
|
||||||
echo
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user