From 245bbd8b972f20d800a36d19927e57c72e0bad96 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 23 Jan 2015 17:40:03 +0000 Subject: [PATCH] Report total, not latest-minute, message count in aircraft.json so that the webmap value doesn't jump around over a reset. --- net_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 0276f61..08842bb 100644 --- a/net_io.c +++ b/net_io.c @@ -756,7 +756,8 @@ char *generateAircraftJson(const char *url_path, int *len) { "{ \"now\" : %d,\n" " \"messages\" : %u,\n" " \"aircraft\" : [", - (int)now, Modes.stats_current.messages_total); + (int)now, + Modes.stats_current.messages_total + Modes.stats_alltime.messages_total); for (a = Modes.aircrafts; a; a = a->next) { if (a->modeACflags & MODEAC_MSG_FLAG) { // skip any fudged ICAO records Mode A/C