Update temp.inc.sh
This commit is contained in:
@@ -151,8 +151,13 @@ CHECKTEMP(){
|
|||||||
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} ${idsCL[Default]}/${spca}${averagedisp}${GAUGESH}"
|
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} ${idsCL[Default]}/${spca}${averagedisp}${GAUGESH}"
|
||||||
fi
|
fi
|
||||||
if ([ "${average}" != "" ] || [ "${temp_f}" != "" ]) && [[ "${SENSOR}" != *"FAN"* ]]; then
|
if ([ "${average}" != "" ] || [ "${temp_f}" != "" ]) && [[ "${SENSOR}" != *"FAN"* ]]; then
|
||||||
tmp="${spct}${temp_f_disp}${GAUGESH}"
|
if [ "${average}" != "" ]; then
|
||||||
[ "${average}" != "" ] && fws=11 || fws=21
|
fws=11
|
||||||
|
tmp="${spct}${averagedisp}${GAUGESH}"
|
||||||
|
else
|
||||||
|
fws=21
|
||||||
|
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
|
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=' '
|
||||||
|
|||||||
Reference in New Issue
Block a user