osm-garmin: improve performance
This commit is contained in:
parent
876295aac2
commit
e96e34f6ff
2 changed files with 18 additions and 7 deletions
|
@ -3,6 +3,13 @@
|
|||
. /app/utils.sh
|
||||
|
||||
sleep_time=3600
|
||||
sleep_time_fail=60
|
||||
|
||||
function wait() {
|
||||
delay="$1"
|
||||
echo "💤 Sleeping $delay seconds..."
|
||||
sleep $delay
|
||||
}
|
||||
|
||||
while :
|
||||
do
|
||||
|
@ -14,6 +21,9 @@ do
|
|||
|
||||
/app/build-gmap.sh "$regions" "$style"
|
||||
|
||||
echo "💤 Sleeping $sleep_time seconds..."
|
||||
sleep $sleep_time
|
||||
if [[ $? == 0 ]]; then
|
||||
wait $sleep_time
|
||||
else
|
||||
wait $sleep_time_fail
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue