Update temp.inc.sh
This commit is contained in:
@@ -143,7 +143,6 @@ CHECKTEMP(){
|
||||
echo -en "${idsCL[LightCyan]} Getting FanSpeed..."
|
||||
fi
|
||||
RPM=$(snmpwalk -v 1 -c public -t 2 ${PW_HOST_IDRACS[${SENSOR}]} .1.3.6.1.4.1.674.10892.5.4.700.12.1.6.1.3 -O vq)
|
||||
[ ! -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt} ] && until [ -f ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt} ]; do tmp=tmp; done
|
||||
[ "${avgdays}" != "noavg" ] && fan_average=$(bc <<< "scale=0; $(ROUNDHALVES $(bc <<< "scale=3; $(AVERAGETEMP ${SENSOR} ${avgdays} FanSpeed)/10"))*10/1")
|
||||
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR} Host Sensors ${idsST[Reset]}${idsCL[White]}[${vHOSTiDRACIP}]"
|
||||
[ "${SENSOR}" == "iDS-vMS-Host6" ] && cSENSOR="iDS-vMS-Host7" || cSENSOR=${SENSOR}
|
||||
@@ -154,7 +153,7 @@ CHECKTEMP(){
|
||||
else
|
||||
FSC="${idsCL[LightYellow]}"
|
||||
fi
|
||||
echo -en "${idsCL[LightCyan]} [FanSpeed=${FSC}$(cat ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt})${idsST[Reset]}${idsCL[LightCyan]}'% "
|
||||
echo -en "${idsCL[LightCyan]} [FanSpeed=${FSC}${FanSpeed}${idsST[Reset]}${idsCL[LightCyan]}'% "
|
||||
if [ "${avgdays}" != "noavg" ]; then
|
||||
echo -e "${idsCL[LightYellow]} AVG=${fan_average}'%${idsCL[LightCyan]}]${idsCL[Default]}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user