1
0
Fork 0
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:
Matthias Wirth 2025-01-06 20:24:02 +00:00
parent 6fb24161d8
commit 5bbaae24a4

View file

@ -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