From 6fe4db071c16e6d786c42a6d2121744d293a1266 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Aug 2025 22:20:29 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 5f6cf3da..a65983ca 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -53,6 +53,8 @@ AVERAGEPOWER(){ } CHECKPOWER(){ + [ ${REPORT} -eq 0 ] && modstart=`date +%s` + rm -f ${PW_TMPFOLDER}/*.hostpower* REPORT=0 wspc=10 @@ -75,7 +77,6 @@ CHECKPOWER(){ shift 1 done if [ "${avgdays}" != "" ]; then - [ ${REPORT} -eq 0 ] && modstart=`date +%s` if [ "${avgdays}" = "0" ]; then unset avgdays elif [[ "${avgdays^^}" = *"M"* ]]; then