This commit is contained in:
2024-02-16 22:59:25 -06:00
parent ff39b6acaa
commit 61fa5f7e8a
2 changed files with 3 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.6.35-02162024'
VERS='2.6.36-02162024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -51,8 +51,6 @@ AVERAGEPOWER(){
}
CHECKPOWER(){
modstart=`date +%s`
echo "START: ${modstart}"
rm -f ${PW_TMPFOLDER}/*.hostpower*
REPORT=0
wspc=10
@@ -74,6 +72,7 @@ CHECKPOWER(){
shift 1
done
if [ "${avgdays}" != "" ]; then
[ ${REPORT} -eq 0 ] && modstart=`date +%s`
if [ "${avgdays}" = "0" ]; then
unset avgdays
elif [[ "${avgdays^^}" = *"M"* ]]; then
@@ -523,11 +522,9 @@ CHECKPOWER(){
fi
fi
if [ ${REPORT} -eq 0 ]; then
if [ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ]; then
if [ "${avgdays}" != "" ]; then
modend=`date +%s`; modruntime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${modruntime}s"
echo "END: ${modend}"
fi
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
fi
}