Update power.inc.sh

This commit is contained in:
2025-05-31 21:12:21 -05:00
parent efcccd824e
commit af18d0a822

View File

@@ -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]}"