Update temp.inc.sh

This commit is contained in:
2024-04-22 20:49:56 -05:00
parent 11eda7dd97
commit 427f8e96fd

View File

@@ -192,7 +192,7 @@ CHECKTEMP(){
fws=10 fws=10
tmp="${spca}${average_disp}${GAUGESH}" tmp="${spca}${average_disp}${GAUGESH}"
else else
fws=15 fws=16
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
@@ -360,7 +360,7 @@ CHECKTEMP(){
fi fi
if [ "${average}" != "" ] || [ "${temp_f}" != "" ]; then if [ "${average}" != "" ] || [ "${temp_f}" != "" ]; then
[ "${average}" != "" ] && fws=11 || fws=15 [ "${average}" != "" ] && fws=11 || fws=16
[ ${#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