From 7c2fd326f52cd8cbd2664d2377678bef5d962164 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Aug 2025 22:21:10 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index a65983ca..654bc1d9 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -53,11 +53,11 @@ AVERAGEPOWER(){ } CHECKPOWER(){ - [ ${REPORT} -eq 0 ] && modstart=`date +%s` - rm -f ${PW_TMPFOLDER}/*.hostpower* REPORT=0 wspc=10 + [ ${REPORT} -eq 0 ] && modstart=$(date +%s) + while [ $# -gt 0 ]; do case "$1" in -a|-avg) avgdays=${2};;