Browse Source

Adjust refresh to 30 sec

master
Kenneth Bruen 9 months ago
parent
commit
1d8cd97a9e
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 2
      src/departure.zig

2
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) {

Loading…
Cancel
Save