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; }