Update power.inc.sh

This commit is contained in:
2025-06-02 23:03:49 -05:00
parent 5aa960a642
commit 3aad35b2d3

View File

@@ -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