From af18d0a822b286014fa729d96c60bb71580e67f9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 31 May 2025 21:12:21 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 7a04a195..72ae6d4a 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -333,7 +333,6 @@ CHECKPOWER(){ [ ${REPORT} -eq 0 ] && echo -en "\r\033[K" echo -e "${idsCL[White]}UPS Status ${idsCL[Default]}: ${idsCL[LightCyan]}${UPS_DISP_STATUS}${idsCL[Default]}" - echo "HERE: ${avgdays}" if [ ${REPORT} -eq 0 ]; then echo echo -en "${idsCL[LightCyan]} Amps Volts" @@ -344,8 +343,9 @@ CHECKPOWER(){ if [ "${avgdays}" == "" ]; then echo "" else - echo -en "${idsCL[Yellow]} Calculating ${avgdays_disp} Average ... " + echo -e "${idsCL[Yellow]} Calculating ${avgdays_disp} Average ... " AMP_avg=$(AVERAGEPOWER ${PW_POWERSENSOR_ID['ups-input']} ${avgdays} amp) + echo "Here 2 : ${AMP_avg}" AMP_avg=$(echo ${avg} | cut -d'~' -f 1) [ ${REPORT} -eq 0 ] && echo -en "\r\033[K" echo -e "${idsCL[White]}UPS Input ${idsCL[Default]}: ${idsCL[Green]}${AD1}'A${spc1}`IDS_NUMBER_FORMAT ${UPS_VOLTIN}`'V${idsCL[LightYellow]} ${AD}'A${idsCL[Default]}"