This commit is contained in:
2025-06-03 17:05:58 -05:00
parent 64a5178d6b
commit 44aac506fc
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PW_VERS='2.10.10-06022025'
PW_VERS='2.10.11-06032025'
noheader=' update service dailytemp confsync -r -report test '

View File

@@ -877,7 +877,7 @@ CHECKTEMP_SERVICE(){
for sensor in ${PW_TMPFOLDER}/ztemprun.*.done; do
tsensor=$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")
if [ "${tsensor}" != "*" ]; then
echo "sensor: ${tsensor}"
# echo "sensor: ${tsensor}"
rm -f ${sensor}
((s_count++))
if [ -f ${PW_TMPFOLDER}/${tsensor}.down ] && [ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}.set ] && [ "${PW_SENSOR_TYPE[${tsensor}]}" == "esxi" ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastfancheck/${tsensor}.set)) -ge 900 ]; then
@@ -893,7 +893,7 @@ CHECKTEMP_SERVICE(){
fi
done
end=`date +%s`; runtime=$((end-start))
echo -e "script runtime: ${runtime}s"; [ ${runtime} -lt $((runEvery*60)) ] && echo "Sleeping for $(((runEvery*60)-runtime))s"
# echo -e "script runtime: ${runtime}s"; [ ${runtime} -lt $((runEvery*60)) ] && echo "Sleeping for $(((runEvery*60)-runtime))s"
echo "${log_start}~${runtime}~temp" >> ${PW_LOGFOLDER}/service.scantimes
[ ${runtime} -lt $((runEvery*60)) ] && sleep $(((runEvery*60)-runtime))s
done # &