Display message rate (30 sec average) on the webmap.

(cherry picked from commit 848af78be685c6e2a26d0b30e9f385696201a2c4)
This commit is contained in:
Oliver Jowett 2015-01-13 19:10:55 +00:00
parent 41d8a79041
commit 72bfc31458
6 changed files with 41 additions and 4 deletions

View file

@ -676,8 +676,9 @@ char *generateAircraftJson(int *len) {
p += snprintf(p, end-p,
"{ \"now\" : %d,\n"
" \"messages\" : %u,\n"
" \"aircraft\" : [",
(int)now);
(int)now, Modes.stat_messages_total);
while(a) {
if (a->modeACflags & MODEAC_MSG_FLAG) { // skip any fudged ICAO records Mode A/C