From 874115abba7419767d68942824ffd1fdd980a928 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 13 Jan 2024 10:11:28 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 51816737..8e35d193 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -339,7 +339,7 @@ CHECKPOWER(){ average_amp=$(echo ${average} | cut -d'~' -f 1) average_watt=$(echo ${average} | cut -d'~' -f 2) average_disp="${idsCL[LightYellow]} ${average_amp}'amps - `IDS_NUMBER_FORMAT ${average_watt} 0`'watts" - echo -e "\r\033[K"; echo -en "${MSG}${idsCL[LightYellow]}${average_disp}${idsCL[Default]}" + echo -en "\r\033[K"; echo -en "${MSG}${idsCL[LightYellow]}${average_disp}" if [[ "${PW_MAINSITE_HOSTS}" == *"${PW_HOST_ADDRESSES[${SENSOR}]}"* ]]; then AVERAGE_WATTS_MAINSITE=`echo "scale=2; ${AVERAGE_WATTS_MAINSITE}+${average_watt}" | bc` AVERAGE_AMPS_MAINSITE=`echo "scale=2; ${AVERAGE_AMPS_MAINSITE}+${average_amp}" | bc` @@ -349,9 +349,10 @@ CHECKPOWER(){ fi elif [ ${HOST_WATTS} -gt 0 ]; then - echo -e "${idsCL[Cyan]} [PS1=${idsCL[LightCyan]}${PS1}'A${idsCL[Cyan]}, PS2=${idsCL[LightCyan]}${PS2}'A${idsCL[Cyan]}]${idsCL[Default]}" + echo -en "${idsCL[Cyan]} [PS1=${idsCL[LightCyan]}${PS1}'A${idsCL[Cyan]}, PS2=${idsCL[LightCyan]}${PS2}'A${idsCL[Cyan]}]" fi # fi + echo -e "${idsCL[Default]}" fi fi done