Update power.inc.sh
This commit is contained in:
@@ -419,9 +419,8 @@ CHECKPOWER(){
|
||||
HOST_WATTS_disp="${idsCL[LightRed]}Host offline"
|
||||
fi
|
||||
|
||||
MSG="${idsCL[White]}${SENSOR} ${idsCL[Default]}: ${HOST_WATTS_disp}"
|
||||
[ ${REPORT} -eq 0 ] && echo -en "\r\033[K"
|
||||
echo -e "${MSG}"
|
||||
echo -e "${idsCL[White]}${SENSOR} ${idsCL[Default]}: ${HOST_WATTS_disp}"
|
||||
|
||||
if [ "${HOST_WATT_SENSORS}" != "" ] && [ ${HOST_WATTS} -gt 0 ]; then
|
||||
if [[ "${PW_HOST_IDRACS[${SENSOR}]}" = *"10.10."* ]]; then
|
||||
@@ -450,10 +449,11 @@ CHECKPOWER(){
|
||||
|
||||
fi
|
||||
if [ ${HOST_WATTS} -gt 0 ]; then
|
||||
echo -e "${idsCL[LightCyan]} PS1 ${idsCL[Default]}: ${idsCL[LightCyan]}${PS1}'A @ ${PS1V}'V${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]} PS2 ${idsCL[Default]}: ${idsCL[LightCyan]}${PS2}'A @ ${PS2V}'V${idsCL[Default]}"
|
||||
DIVIDER . lightCyan ${PRI_WIDTH}
|
||||
echo -e "${idsCL[LightCyan]} PS1 ${idsCL[Default]}: ${idsCL[LightCyan]}${PS1}'A @ ${PS1V}'V"
|
||||
echo -e "${idsCL[LightCyan]} PS2 ${idsCL[Default]}: ${idsCL[LightCyan]}${PS2}'A @ ${PS2V}'V"
|
||||
fi
|
||||
|
||||
echo -e "${idsCL[Default]}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user