diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index ce101233..8a1f266d 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -71,9 +71,10 @@ CHECKTEMP(){ # fi fi echo - fi + fi + if [ "${PW_SENSOR_TYPE[${SENSOR}]}" != "esxi" ] && [ "${temptype}" != "esxi" ]; then - # ([[ "${SENSOR}" == *"CPU-Usage" ]] || [[ "${SENSOR}" == *"-FAN" ]]) && echo -en "\033[1A" + [ "${last_sensor}" != "" ] && [ "${last_sensor}" == "${SENSOR}" ] && echo -en "\033[1A" c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done if [ ! -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}" @@ -84,6 +85,7 @@ CHECKTEMP(){ echo -e "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${idsCL[Yellow]}Sensor Offline${idsCL[Default]}" fi echo + last_sensor=${SENSOR} fi fi done