From 21743b03b7aba16d6bf3fb3df55a4651c98b2c57 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 2 Dec 2019 20:49:33 -0600 Subject: [PATCH] Fix invalid JSON after addition of unreliable_tracks When `unreliable_tracks` was added to the JSON output, the trailing `}` after `single_message` should likely have been removed. Side note: should this just be `unreliable` since it is nested inside `tracks`? `all` and `single_message` don't have the `tracks` suffix. --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 2c38a74..0c9b6cc 100644 --- a/net_io.c +++ b/net_io.c @@ -1572,7 +1572,7 @@ static char * appendStatsJson(char *p, ",\"altitude_suppressed\":%u" ",\"cpu\":{\"demod\":%llu,\"reader\":%llu,\"background\":%llu}" ",\"tracks\":{\"all\":%u" - ",\"single_message\":%u}" + ",\"single_message\":%u" ",\"unreliable_tracks\":%u}" ",\"messages\":%u}", st->cpr_surface,