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