Update temp.inc.sh

This commit is contained in:
2024-04-21 14:40:04 -05:00
parent 5a3458edc3
commit 1baa7daff4

View File

@@ -132,6 +132,8 @@ CHECKTEMP(){
reading="${reading} ${idsCL[LightRed]}\u2B06 "
elif [ $(bc -l <<< "${temp_f} < $(cat ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old | cut -d'~' -f 1)") -eq 1 ]; then
reading="${reading} ${idsCL[LightGreen]}\u2B07 "
else
reading="${reading} "
fi
fi
@@ -170,10 +172,10 @@ CHECKTEMP(){
fi
if ([ "${average}" != "" ] || [ "${temp_f}" != "" ]) && [[ "${SENSOR}" != *"FAN"* ]]; then
if [ "${average}" != "" ]; then
fws=10
fws=7
tmp="${spca}${average_disp}${GAUGESH}"
else
fws=21
fws=18
tmp="${spct}${temp_f_disp}${GAUGESH}"
fi
c=0; spc=''; spc1=`expr ${fws} - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done