Update temp.inc.sh

This commit is contained in:
2025-06-21 16:17:06 -05:00
parent 2298fc3a11
commit 8d3803008e

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