diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 72242329..a6036c16 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -332,7 +332,7 @@ CHECKPOWER(){ SENSOR_TOTAL_AMPS_OFFSITE=$(echo "scale=1; ${SENSOR_TOTAL_AMPS_OFFSITE}+${HOST_AMPS}" | bc) fi fi - if [ ${HOST_WATTS} -ne 0 ]; then + if [ ${HOST_WATTS} -gt 0 ]; then if [ "${avgdays}" != "" ]; then echo -en "${idsCL[LightYellow]} Calculating average ...${idsCL[Default]}" average=$(AVERAGEPOWER ${PW_POWERSENSOR_ID[${SENSOR}]} ${avgdays} both)