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.
This commit is contained in:
Dan McGee 2019-12-02 20:49:33 -06:00 committed by GitHub
parent f7123c41e5
commit 21743b03b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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