From 0b0af6561ffab2a3187525a084eef5d02be96e6e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 11 Feb 2024 10:20:33 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 52f064d9..27e19f7b 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -288,7 +288,8 @@ CHECKPOWER(){ if ([ "${STYPE}" = "" ] || [ "${STYPE}" = "offsite" ]) && [ "${PTYPE}" != "esxi" ]; then DIVIDER . yellow ${PRI_WIDTH} - echo -e "${idsCL[Yellow]}Offsite Power Information ${idsCL[LightYellow]}${avgdayshdr}" + echo -en "${idsCL[Yellow]}Offsite Power Information" + [ "${avgdays}" != "" ] && echo -e " ${idsCL[LightYellow]}${avgdays_disp}-Averages" || echo DIVIDER . yellow ${PRI_WIDTH} [ ${REPORT} -eq 0 ] && echo -en "${idsCL[Yellow]}Pulling data from 'Offsite' ... " @@ -335,7 +336,8 @@ CHECKPOWER(){ if [ "${PTYPE}" != "power" ]; then DIVIDER . yellow ${PRI_WIDTH} - echo -e "${idsCL[Yellow]}ESXi Host Power Information ${avgdayshdr}" + echo -en "${idsCL[Yellow]}ESXi Host Power Information" + [ "${avgdays}" != "" ] && echo -e " ${idsCL[LightYellow]}${avgdays_disp}-Averages" || echo DIVIDER . yellow ${PRI_WIDTH} SENSOR_TOTAL_WATTS_MAINSITE=0 SENSOR_TOTAL_AMPS_MAINSITE=0