Update temp.inc.sh
This commit is contained in:
@@ -137,7 +137,11 @@ CHECKTEMP(){
|
|||||||
fi
|
fi
|
||||||
c=0; spct=''; [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]] && spc1=`expr 6 - ${#temp_f}` || spc1=`expr 7 - ${#temp_f}`
|
c=0; spct=''; [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]] && spc1=`expr 6 - ${#temp_f}` || spc1=`expr 7 - ${#temp_f}`
|
||||||
until [ ${c} = ${spc1} ]; do spct="${spct} "; ((c++)); done
|
until [ ${c} = ${spc1} ]; do spct="${spct} "; ((c++)); done
|
||||||
reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 2 yes)"${GAUGESH}"
|
if [[ "${SENSOR}" = *"FAN"* ]]; then
|
||||||
|
reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 0)"${GAUGESH}"
|
||||||
|
else
|
||||||
|
reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 2 yes)"${GAUGESH}"
|
||||||
|
fi
|
||||||
[ ${REPORT} -eq 0 ] && echo -en "\r\033[K"
|
[ ${REPORT} -eq 0 ] && echo -en "\r\033[K"
|
||||||
echo -en "${idsCL[White]}${idsST[Bold]}${SENSOR_DESC}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} "
|
echo -en "${idsCL[White]}${idsST[Bold]}${SENSOR_DESC}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} "
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user