diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 3f418e9e..02ce8afc 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -335,7 +335,11 @@ CHECKPOWER(){ fi done fi - [ ${REPORT} -eq 0 ] && end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}" + if [ ${REPORT} -eq 0 ]; then + end=`date +%s` + runtime=$((end-start)) + echo -e "\nruntime: ${runtime}" + fi [ "${PW_ACTION}" != "" ] && [ ${REPORT} -eq 0 ] && echo }