Update temp.inc.sh

This commit is contained in:
2024-01-31 08:52:23 -06:00
parent acb20e6fa1
commit 8b5788ff11

View File

@@ -345,7 +345,7 @@ CHECKTEMPSENSOR(){
# el # el
if [[ "${1}" != *"FAN"* ]]; then if [[ "${1}" != *"FAN"* ]]; then
tmp="${spct}${temp_f_disp}${GAUGESH}" tmp="${spct}${temp_f_disp}${GAUGESH}"
[ "${average}" != "" ] && fws=12 || fws=16 [ "${average}" != "" ] && fws=12 || fws=21
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
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' ' [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' ' [ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '