Update temp.inc.sh

This commit is contained in:
2024-01-30 21:34:03 -06:00
parent 156498ef86
commit 8e08417538

View File

@@ -130,14 +130,12 @@ CHECKTEMP(){
[ "${avgdays}" != "noavg" ] && echo -en "\r\033[K"
echo -e "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: ${reading}"
if [ "${temptype}" == "fans" ]; then
last_check=$(SHOW_TIME $(tail -n 1 ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}) s)
MSG=" Last checked"
c=0; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
echo -e "${MSG}${spc}: ${idsCL[White]}${last_check}${idsCL[Default]}"
last_set=$(SHOW_TIME $(tail -n 1 ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set) s)
echo -e "${MSG}${spc}: ${idsCL[White]}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR} "+%m-%d-%Y %H:%M:%S")${idsCL[Default]}"
MSG=" Last set"
c=0; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
echo -e "${MSG}${spc}: ${idsCL[White]}${last_set}${idsCL[Default]}"
echo -e "${MSG}${spc}: ${idsCL[White]}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set "+%m-%d-%Y %H:%M:%S")${idsCL[Default]}"
fi
fi
((t++))