This commit is contained in:
2024-11-10 10:15:34 -06:00
parent 20652b2600
commit 8197cb5217
2 changed files with 5 additions and 3 deletions

View File

@@ -350,8 +350,10 @@ CHECKPOWER(){
[ ${REPORT} -eq 0 ] && echo
echo -e "${idsCL[White]}UPS Battery Capacity ${idsCL[Default]}: ${idsCL[Green]}`IDS_NUMBER_FORMAT ${OFFSITE_BATT_CAP}`%${idsCL[Default]}"
echo -e "${idsCL[White]}UPS Battery Runtime ${idsCL[Default]}: ${idsCL[Green]}${OFFSITE_BATT_RUNTIME}'mins${idsCL[Default]}"
echo -e "${idsCL[White]}UPS Battery Voltage ${idsCL[Default]}: ${idsCL[Green]}${OFFSITE_BATT_VOLT}'volts${idsCL[Default]}"
[ ${REPORT} -eq 0 ] && echo
if [ ${REPORT} -eq 0 ]; then
echo -e "${idsCL[White]}UPS Battery Voltage ${idsCL[Default]}: ${idsCL[Green]}${OFFSITE_BATT_VOLT}'volts${idsCL[Default]}"
echo
fi
echo -en "${idsCL[LightCyan]}Misc Sensors Amps Watts"
[ "${avgdays}" != "" ] && echo -e " Amps Watts" || echo -e " Volts"

View File

@@ -648,7 +648,7 @@ CHECKTEMP(){
fi
rm -f ${PW_TMPFOLDER}/.fanspeed.*
# [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && end=`date +%s`; runtime=$((end-start)); echo -e "${idsCL[Default]}runtime: ${runtime}s"
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
[ ${REPORT} -eq 0 ] && [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
}
CHECKTEMPSENSOR(){