Add stats for total aircraft tracks and tracks that have only a single message.
This commit is contained in:
parent
f1201a0069
commit
a49b5b8830
5 changed files with 30 additions and 0 deletions
4
net_io.c
4
net_io.c
|
|
@ -887,6 +887,8 @@ static char * appendStatsJson(char *p,
|
|||
",\"local_skipped\":%u"
|
||||
",\"filtered\":%u}"
|
||||
",\"cpu\":{\"demod\":%llu,\"reader\":%llu,\"background\":%llu}"
|
||||
",\"tracks\":{\"all\":%u"
|
||||
",\"single_message\":%u}"
|
||||
",\"messages\":%u}",
|
||||
st->cpr_global_ok,
|
||||
st->cpr_global_bad,
|
||||
|
|
@ -897,6 +899,8 @@ static char * appendStatsJson(char *p,
|
|||
(unsigned long long)demod_cpu_millis,
|
||||
(unsigned long long)reader_cpu_millis,
|
||||
(unsigned long long)background_cpu_millis,
|
||||
st->unique_aircraft,
|
||||
st->single_message_aircraft,
|
||||
st->messages_total);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue