From 7a87e64c7ef79ac5c5ac0865db40b878fb333267 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 31 May 2025 14:30:41 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index db2a75f8..d5fbd587 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -345,12 +345,10 @@ CHECKPOWER(){ echo -e "${idsCL[White]}UPS Load Usage ${idsCL[Default]}: ${idsCL[Green]}${UPS_LOAD}'%${idsCL[Default]}" echo -e "${idsCL[White]}UPS Watts ${idsCL[Default]}: ${idsCL[Green]}${UPS_WATTS}'W${idsCL[Default]}" [ ${REPORT} -eq 0 ] && echo + [ ${REPORT} -eq 0 ] && echo -e "${idsCL[White]}UPS Battery Voltage ${idsCL[Default]}: ${idsCL[Green]}${UPS_BATT_VOLT}'V${idsCL[Default]}" echo -e "${idsCL[White]}UPS Battery Capacity ${idsCL[Default]}: ${idsCL[Green]}`IDS_NUMBER_FORMAT ${UPS_BATT_CAP}`'%${idsCL[Default]}" echo -e "${idsCL[White]}UPS Battery Runtime ${idsCL[Default]}: ${idsCL[Green]}${UPS_BATT_RUNTIME}'mins${idsCL[Default]}" - if [ ${REPORT} -eq 0 ]; then - echo -e "${idsCL[White]}UPS Battery Voltage ${idsCL[Default]}: ${idsCL[Green]}${UPS_BATT_VOLT}'V${idsCL[Default]}" - echo - fi + [ ${REPORT} -eq 0 ] && echo TOTAL_MISC_WATTS=0; TOTAL_MISC_AMPS=0 if [ ${REPORT} -eq 0 ]; then