Update temp.inc.sh

This commit is contained in:
2024-01-31 08:45:22 -06:00
parent 55187456f6
commit 99f8b419d2

View File

@@ -345,7 +345,8 @@ CHECKTEMPSENSOR(){
# el
if [[ "${1}" != *"FAN"* ]]; then
tmp="${spct}${temp_f_disp}${GAUGESH}"
c=0; spc=''; spc1=`expr 16 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
[ "${average}" != "" ] fws=10 || fws=16
c=0; spc=''; spc1=`expr ${fws} - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
echo -en "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]"