Update temp.inc.sh

This commit is contained in:
2024-04-21 15:20:50 -05:00
parent 6c129ea6c6
commit f4ab1972d9

View File

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