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
8
stats.c
8
stats.c
|
@ -132,6 +132,9 @@ void display_stats(struct stats *st) {
|
|||
st->cpr_local_skipped,
|
||||
st->cpr_filtered);
|
||||
|
||||
printf("%u unique aircraft tracks\n", st->unique_aircraft);
|
||||
printf("%u aircraft tracks where only one message was seen\n", st->single_message_aircraft);
|
||||
|
||||
if (Modes.net && Modes.net_http_port)
|
||||
printf("%d HTTP requests\n", st->http_requests);
|
||||
|
||||
|
@ -150,6 +153,7 @@ void display_stats(struct stats *st) {
|
|||
(unsigned long long) background_cpu_millis);
|
||||
}
|
||||
|
||||
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
@ -224,5 +228,9 @@ void add_stats(const struct stats *st1, const struct stats *st2, struct stats *t
|
|||
target->cpr_local_ok = st1->cpr_local_ok + st2->cpr_local_ok;
|
||||
target->cpr_local_skipped = st1->cpr_local_skipped + st2->cpr_local_skipped;
|
||||
target->cpr_filtered = st1->cpr_filtered + st2->cpr_filtered;
|
||||
|
||||
// aircraft
|
||||
target->unique_aircraft = st1->unique_aircraft + st2->unique_aircraft;
|
||||
target->single_message_aircraft = st1->single_message_aircraft + st2->single_message_aircraft;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue