From 10c372f528211abe94f99b77b93c5c688edce1e0 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 12 Jan 2015 18:54:18 +0000 Subject: [PATCH] Display stats on exit in --net-only mode. (cherry picked from commit ec252d77deb2b345a8561cba13965d5ef8ab0a83) --- dump1090.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dump1090.c b/dump1090.c index 150298d..d904c1c 100644 --- a/dump1090.c +++ b/dump1090.c @@ -979,7 +979,10 @@ int main(int argc, char **argv) { // If the user specifies --net-only, just run in order to serve network // clients without reading data from the RTL device while (Modes.net_only) { - if (Modes.exit) exit(0); // If we exit net_only nothing further in main() + if (Modes.exit) { + display_stats(); + exit(0); // If we exit net_only nothing further in main() + } backgroundTasks(); usleep(100000); }