update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
PW_VERS='2.10.10-06022025'
|
PW_VERS='2.10.11-06032025'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report test '
|
noheader=' update service dailytemp confsync -r -report test '
|
||||||
|
|
||||||
|
|||||||
@@ -877,7 +877,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
for sensor in ${PW_TMPFOLDER}/ztemprun.*.done; do
|
for sensor in ${PW_TMPFOLDER}/ztemprun.*.done; do
|
||||||
tsensor=$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")
|
tsensor=$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")
|
||||||
if [ "${tsensor}" != "*" ]; then
|
if [ "${tsensor}" != "*" ]; then
|
||||||
echo "sensor: ${tsensor}"
|
# echo "sensor: ${tsensor}"
|
||||||
rm -f ${sensor}
|
rm -f ${sensor}
|
||||||
((s_count++))
|
((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
|
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
|
fi
|
||||||
done
|
done
|
||||||
end=`date +%s`; runtime=$((end-start))
|
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
|
echo "${log_start}~${runtime}~temp" >> ${PW_LOGFOLDER}/service.scantimes
|
||||||
[ ${runtime} -lt $((runEvery*60)) ] && sleep $(((runEvery*60)-runtime))s
|
[ ${runtime} -lt $((runEvery*60)) ] && sleep $(((runEvery*60)-runtime))s
|
||||||
done # &
|
done # &
|
||||||
|
|||||||
Reference in New Issue
Block a user