Update temp.inc.sh

This commit is contained in:
2023-12-26 22:07:59 -06:00
parent a7dca08079
commit d70deeb311

View File

@@ -648,7 +648,7 @@ SENDTEMP(){
cw=35;
echo
echo -en "Sensor Temperature(s)"
# [ "${1}" != "" ] && echo " Now / 1DayAVG / 7DayAVG" || echo
[ "${1}" != "" ] && echo " Now / 1DayAVG / 7DayAVG" || echo
DIVIDER . . 40
for SENSORa in ${PW_SENSOR_ORD[@]}; do
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" != "esxi" ]; then
@@ -663,7 +663,7 @@ SENDTEMP(){
for SENSOR in "${SENSORS_CHECK[@]}"; do
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then
GAUGESH="'%"
GAUGESH="'%25"
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then
GAUGESH="'R"
else
@@ -723,7 +723,7 @@ SENDTEMP(){
fi
# c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
# ([[ "${SENSOR}" = *"-Probe"* ]] || [[ "${SENSOR}" = *"-Usage"* ]]) && spc=" " || spc=" "
([[ "${SENSOR}" = *"-Probe"* ]] || [[ "${SENSOR}" = *"-Usage"* ]]) && spc=" " || spc=" "
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
if [ "${SENSOR}" == "ServerRoomTH" ]; then
temp_f=`echo "scale=2; ${temp_c}*1.8+32+${PW_ServerRoomTH_Dev}" | bc`