From 929df244f03e217089c070dd2cdaade9099022dd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 16 Feb 2024 22:56:46 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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