Update power.inc.sh
This commit is contained in:
@@ -51,7 +51,7 @@ AVERAGEPOWER(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOWER(){
|
CHECKPOWER(){
|
||||||
start=`date +%s`
|
modstart=`date +%s`
|
||||||
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
||||||
REPORT=0
|
REPORT=0
|
||||||
wspc=10
|
wspc=10
|
||||||
@@ -521,7 +521,7 @@ CHECKPOWER(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ${REPORT} -eq 0 ]; then
|
if [ ${REPORT} -eq 0 ]; then
|
||||||
[ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && end=`date +%s`; runtime=$((end-start)); echo -e "${idsCL[Default]}runtime: ${runtime}s"
|
[ "${avgdays}" != "" ] && [ ${REPORT} -eq 0 ] && modend=`date +%s`; runtime=$((modend-modstart)); echo -e "${idsCL[Default]}runtime: ${runtime}s"
|
||||||
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
|
[ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user