From 1d8cd97a9e8a121af263596f34178eb4c8119356 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sat, 17 Feb 2024 13:35:58 +0100 Subject: [PATCH] Adjust refresh to 30 sec --- src/departure.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/departure.zig b/src/departure.zig index b5def6f..d89477f 100644 --- a/src/departure.zig +++ b/src/departure.zig @@ -29,7 +29,7 @@ fn fetchThread(state: *AppState) !void { while (state.departure_screen_state.fetch_thread != null) { var fetch_anyway = state.departure_screen_state.should_refresh; - if (state.departure_screen_state.last_refresh_time + 60000 < std.time.milliTimestamp()) { + if (state.departure_screen_state.last_refresh_time + 30000 < std.time.milliTimestamp()) { fetch_anyway = true; } if (!fetch_anyway and std.mem.eql(u8, station_id_buf.slice(), state.departure_screen_state.station_id.items) and include_tram == state.departure_screen_state.include_tram) {