diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 1fac3a44..405738ac 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -327,11 +327,9 @@ CHECKPOWER(){ [ "${STYPE}" == "" ] || [ "${STYPE}" == "mainsite" ] && echo -e "${idsCL[LightCyan]}Mainsite Total ${idsCL[Default]}: ${idsCL[LightGreen]}${SENSOR_TOTAL_AMPS_MAINSITE}'amps - `IDS_NUMBER_FORMAT ${SENSOR_TOTAL_WATTS_MAINSITE}`'watts" [ "${STYPE}" == "" ] || [ "${STYPE}" == "offsite" ] && echo -e "${idsCL[LightCyan]}Offsite Total ${idsCL[Default]}: ${idsCL[LightGreen]}${SENSOR_TOTAL_AMPS_OFFSITE}'amps - `IDS_NUMBER_FORMAT ${SENSOR_TOTAL_WATTS_OFFSITE}`'watts" fi - # if [ ${REPORT} -eq 0 ]; then - # end=`date +%s` - # runtime=$((end-start)) - # echo -e "\nruntime: ${runtime}" - # fi + if [ ${REPORT} -eq 0 ]; then + end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}" + fi [ "${PW_ACTION}" != "" ] && [ ${REPORT} -eq 0 ] && echo }