Update power.inc.sh

This commit is contained in:
2025-08-12 22:20:29 -05:00
parent 2de48c8b28
commit 6fe4db071c

View File

@@ -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