Update power.inc.sh

This commit is contained in:
2024-02-16 22:55:36 -06:00
parent f3b9dfc91e
commit 38a3b62492

View File

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