Update temp.inc.sh

This commit is contained in:
2023-12-29 16:03:06 -06:00
parent fbad7d0f24
commit 7407c83c9d

View File

@@ -338,8 +338,10 @@ CHECKTEMP_SERVICE(){
break
fi
done
end=`date +%s`; runtime=$((end-start)); echo -e "Runtime: ${runtime}s... sleeping for 5secs..."
sleep 5s
end=`date +%s`; runtime=$((end-start))
echo -e "Runtime: ${runtime}s"
[ ${runtime} -lt 10 ] && echo "Sleeping for $(expr 10 - ${runtime})s"
[ ${runtime} -lt 10 ] && sleep $(expr 10 - ${runtime})s
done # &
${PW_TMPFOLDER}/zservicerun.${SENSORa}.done
}