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