mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-12-17 18:10:12 +00:00
no_movement_required default / ensure > check interval
This commit is contained in:
parent
e1280accdd
commit
342d3fcd75
1 changed files with 4 additions and 1 deletions
|
@ -95,7 +95,10 @@ if grep -qs "gpsd" <<< "$ULTRAFEEDER_CONFIG" || grep -qs "gpsd" <<< "$ULTRAFEEDE
|
|||
old_lon="$new_lon"
|
||||
|
||||
# in seconds
|
||||
no_movement_required=19
|
||||
no_movement_required=90
|
||||
if (( no_movement_required < "${GPSD_CHECK_INTERVAL:-30}" )); then
|
||||
no_movement_required="${GPSD_CHECK_INTERVAL:-30}"
|
||||
fi
|
||||
# set no_movement to a number higher than the required time of no movement
|
||||
# this way on startup there is no bogus message printed about starting mlat-clients with a new location
|
||||
no_movement=$(( 2 * no_movement_required ))
|
||||
|
|
Loading…
Reference in a new issue