Update temp.inc.sh

This commit is contained in:
2024-04-21 15:09:38 -05:00
parent d7e6fce009
commit fea8180aba

View File

@@ -179,7 +179,7 @@ CHECKTEMP(){
fws=10
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
@@ -334,7 +334,7 @@ CHECKTEMP(){
fi
if [ "${average}" != "" ] || [ "${temp_f}" != "" ]; then
[ "${average}" != "" ] && fws=8 || fws=18
[ "${average}" != "" ] && fws=11 || fws=18
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
if [ "${TTYPE}" == "fans" ]; then