From 2abc3868950d5388542a68977c5fe41878a47a28 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sun, 23 Nov 2014 17:22:34 +0000 Subject: [PATCH] Off-by-one error in the json interval calculation. --- dump1090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump1090.c b/dump1090.c index 5642070..a530a6a 100644 --- a/dump1090.c +++ b/dump1090.c @@ -601,7 +601,7 @@ void backgroundTasks(void) { if (Modes.json_path && Modes.json_interval > 0) { time_t now = time(NULL); - if (now > next_json) { + if (now >= next_json) { modesWriteJson(Modes.json_path); next_json = now + Modes.json_interval; }