Update temp.inc.sh

This commit is contained in:
2024-01-31 08:38:00 -06:00
parent 2d9461e589
commit 16b6c02f60

View File

@@ -66,9 +66,9 @@ CHECKTEMP(){
else
avgdays=noavg
fi
DIVIDER . yellow 70
if [ "${temptype}" != "esxi" ]; then
DIVIDER . yellow 70
if [ "${avgdays}" != "noavg" ]; then
echo -e "${idsCL[Cyan]}Sensor Temperature(s) Current / ${idsCL[LightYellow]}${avgdays_disp}AVG ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}"
else
@@ -104,10 +104,11 @@ CHECKTEMP(){
last_sensor=${SENSOR%%-*}
fi
done
DIVIDER true yellow 70
DIVIDER . yellow 70
fi
if [ "${temptype}" != "sensors" ]; then
DIVIDER . yellow 70
if [ "${avgdays}" != "noavg" ]; then
echo -e "${idsCL[Cyan]}ESXi Sensor Temperature(s) Current / ${idsCL[LightYellow]}${avgdays_disp}AVG ${idsCL[Yellow]}warning${idsCL[Default]} / ${idsCL[LightRed]}critical${idsCL[Default]}"
else