update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.6.35-02162024'
|
VERS='2.6.36-02162024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ AVERAGEPOWER(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOWER(){
|
CHECKPOWER(){
|
||||||
modstart=`date +%s`
|
|
||||||
echo "START: ${modstart}"
|
|
||||||
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
||||||
REPORT=0
|
REPORT=0
|
||||||
wspc=10
|
wspc=10
|
||||||
@@ -74,6 +72,7 @@ CHECKPOWER(){
|
|||||||
shift 1
|
shift 1
|
||||||
done
|
done
|
||||||
if [ "${avgdays}" != "" ]; then
|
if [ "${avgdays}" != "" ]; then
|
||||||
|
[ ${REPORT} -eq 0 ] && modstart=`date +%s`
|
||||||
if [ "${avgdays}" = "0" ]; then
|
if [ "${avgdays}" = "0" ]; then
|
||||||
unset avgdays
|
unset avgdays
|
||||||
elif [[ "${avgdays^^}" = *"M"* ]]; then
|
elif [[ "${avgdays^^}" = *"M"* ]]; then
|
||||||
@@ -523,11 +522,9 @@ CHECKPOWER(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ${REPORT} -eq 0 ]; then
|
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"
|
modend=`date +%s`; modruntime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${modruntime}s"
|
||||||
echo "END: ${modend}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
|
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user