Update temp.inc.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user