Update power.inc.sh
This commit is contained in:
@@ -308,8 +308,9 @@ CHECKPOWER(){
|
||||
# vHOSTFAN=$(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)
|
||||
# FanSpeed=$(ROUND_NUMBER `echo "scale=0; $(ROUND_NUMBER `echo "scale=4; ${vHOSTFAN}/21200" | bc` 2)*100/1" | bc` 0)
|
||||
echo -en "${idsCL[LightCyan]} Getting FanSpeed..."
|
||||
until [ -f ${PW_TMPFOLDER}/.fanspeed ]; do tmp=tmp; sleep 1s; done
|
||||
echo -en "\033[K\r"; echo -en "${MSG}${idsCL[Cyan]} [PS1=${idsCL[LightCyan]}${PS1}'A${idsCL[Cyan]}, PS2=${idsCL[LightCyan]}${PS2}'A${idsCL[Cyan]}]"
|
||||
until [ -f ${PW_TMPFOLDER}/.fanspeed ]; do tmp=tmp; done
|
||||
echo -e "\r\033[K"
|
||||
echo -en "\033[1A${MSG}${idsCL[Cyan]} [PS1=${idsCL[LightCyan]}${PS1}'A${idsCL[Cyan]}, PS2=${idsCL[LightCyan]}${PS2}'A${idsCL[Cyan]}]"
|
||||
echo -en "${MSG}${idsCL[LightYellow]}${average_disp}${idsCL[LightCyan]} [FanSpeed=$(cat ${PW_TMPFOLDER}/.fanspeed)'%]"
|
||||
rm -f ${PW_TMPFOLDER}/.fanspeed
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user