Update power.inc.sh
This commit is contained in:
@@ -1447,9 +1447,8 @@ POWERLOGGER_SERVICE(){
|
||||
else
|
||||
runEvery=${PW_MYSQL_LOG_INTERVAL_NORMAL}
|
||||
fi
|
||||
echo "HERE1: $((runEvery*60))"
|
||||
end=`date +%s`; runtime=$((end-start))
|
||||
echo -e "script runtime: ${runtime}s"; echo "Sleeping for $(( (runEvery*60) - runtime ))s"
|
||||
# echo -e "script runtime: ${runtime}s"; echo "Sleeping for $(( (runEvery*60) - runtime ))s"
|
||||
echo "${log_start}~${runtime}~powerlogger" >> ${PW_LOGFOLDER}/service.scantimes
|
||||
|
||||
[ ${runtime} -lt $((runEvery*60)) ] && sleep $(( (runEvery*60) - runtime ))s
|
||||
|
||||
Reference in New Issue
Block a user