mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2025-04-25 00:19:31 +02:00
add env var MLAT_STATS_INTERVAL
This commit is contained in:
parent
6fb24161d8
commit
5bbaae24a4
1 changed files with 6 additions and 0 deletions
|
@ -291,6 +291,12 @@ do
|
|||
|
||||
MLAT_PARAM+=(--stats-json "/run/mlat-client/${params[0]}:${params[1]}.json")
|
||||
|
||||
if [[ -n "$MLAT_STATS_INTERVAL" ]]; then
|
||||
MLAT_PARAM+=(--stats-interval "$MLAT_STATS_INTERVAL")
|
||||
elif [[ "${LOGLEVEL}" == "error" ]] || [[ "${LOGLEVEL}" == "none" ]]; then
|
||||
MLAT_PARAM+=(--stats-interval 0)
|
||||
fi
|
||||
|
||||
# Now add the extra_args, if any:
|
||||
[[ -n "${extra_args}" ]] && MLAT_PARAM+=("${extra_args}") || true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue