diff --git a/inc/power.inc.sh b/inc/power.inc.sh index cf988028..fc5b6b34 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -523,8 +523,10 @@ CHECKPOWER(){ fi fi if [ ${REPORT} -eq 0 ]; then - [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && modend=`date +%s`; modruntime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${modruntime}s" - echo "END: ${modend}" + [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ]; then + modend=`date +%s`; modruntime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${modruntime}s" + echo "END: ${modend}" + fi [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}" fi