Add stats for total aircraft tracks and tracks that have only a single message.

This commit is contained in:
Oliver Jowett 2015-02-08 18:47:39 +00:00
parent f1201a0069
commit a49b5b8830
5 changed files with 30 additions and 0 deletions

View file

@ -105,6 +105,12 @@ struct stats {
unsigned int cpr_local_ok;
unsigned int cpr_local_skipped;
unsigned int cpr_filtered;
// aircraft:
// total "new" aircraft (i.e. not seen in the last 30 or 300s)
unsigned int unique_aircraft;
// we saw only a single message
unsigned int single_message_aircraft;
};
void add_stats(const struct stats *st1, const struct stats *st2, struct stats *target);