From 2f24ac9e0afad5a9e81b76021a18fbf0edca9f9e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 13 Feb 2024 21:42:04 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 8494cd1d..70b36c57 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -521,7 +521,7 @@ CHECKPOWER(){ fi fi if [ ${REPORT} -eq 0 ]; then - # end=`date +%s`; runtime=$((end-start)); echo -e "\n${idsCL[Default]}runtime: ${runtime}s" + [ "${avgdays}" != "" ] && end=`date +%s`; runtime=$((end-start)); echo -e "\n${idsCL[Default]}runtime: ${runtime}s" [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}" fi }