Update power.inc.sh

This commit is contained in:
2025-05-31 11:32:49 -05:00
parent 24510c5d0b
commit 0c8fafe0eb

View File

@@ -594,7 +594,7 @@ CHECKPOWER(){
[ "${SENSOR}" != "KP-vMS-Host1" ] && DIVIDER . lightCyan ${PRI_WIDTH}
if [ "${HOST_WATT_SENSORS}" != "" ] && [ ${HOST_WATTS} -gt 0 ]; then
if [ "${IP}" != "10.6.1"* ]]; then
if [[ "${IP}" != "10.6.1"* ]]; then
if [[ "${PW_HOST_IDRACS[${SENSOR}]}" = *"10.10."* ]]; then
SENSOR_TOTAL_WATTS_MAINSITE=$(expr ${SENSOR_TOTAL_WATTS_MAINSITE} + ${HOST_WATTS})
SENSOR_TOTAL_AMPS_MAINSITE=$(echo "scale=1; ${SENSOR_TOTAL_AMPS_MAINSITE}+${HOST_AMPS}" | bc)
@@ -612,7 +612,7 @@ CHECKPOWER(){
fi
fi
done
if [ "${IP}" != "10.66.1"* ]]; then
if [[ "${IP}" != "10.66.1"* ]]; then
DIVIDER . lightCyan ${PRI_WIDTH}
echo -en "${idsCL[LightCyan]}TOTALS Amps Watts"
[ "${avgdays}" != "" ] && echo -e " Amps Watts" || echo