From ef38709dac821df7c7adf4fbc81d98432defbd3c Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 26 Dec 2019 23:23:38 +0100 Subject: [PATCH] make history work with mutability (hopefully) --- tar1090.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tar1090.sh b/tar1090.sh index 2403476..0f2cb8e 100755 --- a/tar1090.sh +++ b/tar1090.sh @@ -76,7 +76,7 @@ prune() { jq -c <"$1" >"$2" ' .aircraft |= map(select(has("seen") and .seen < 15)) | .aircraft[] |= [.hex, - (if .alt_baro != null then .alt_baro else .alt_geom end), + (if .alt_baro != null then .alt_baro elif .altitude != null then .altitude else .alt_geom end), (if .gs != null then .gs else .tas end), .track, .lat, .lon, .seen_pos, (if .mlat != null and (.mlat | contains(["lat"])) then "mlat"