From 6440dce8de347a6ed90f61d57a39d57321e02b6e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Dec 2023 16:21:42 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }