From 38a3b62492621864b74dd14bf80e536861c564b5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 16 Feb 2024 22:55:36 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index fe034ba5..cf988028 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -52,6 +52,7 @@ AVERAGEPOWER(){ CHECKPOWER(){ modstart=`date +%s` + echo "START: ${modstart}" rm -f ${PW_TMPFOLDER}/*.hostpower* REPORT=0 wspc=10 @@ -522,7 +523,9 @@ CHECKPOWER(){ fi fi if [ ${REPORT} -eq 0 ]; then - [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && modend=`date +%s`; runtime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${runtime}s" + [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && modend=`date +%s`; modruntime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${modruntime}s" + echo "END: ${modend}" + [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}" fi }