Update power.inc.sh
This commit is contained in:
@@ -53,6 +53,8 @@ AVERAGEPOWER(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOWER(){
|
CHECKPOWER(){
|
||||||
|
[ ${REPORT} -eq 0 ] && modstart=`date +%s`
|
||||||
|
|
||||||
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
||||||
REPORT=0
|
REPORT=0
|
||||||
wspc=10
|
wspc=10
|
||||||
@@ -75,7 +77,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user