From d1cdf1eee45cb14175cc892b370a9a56753cd3f9 Mon Sep 17 00:00:00 2001 From: trilader Date: Thu, 3 Dec 2020 09:19:34 +0100 Subject: [PATCH] Store next refresh interval after calculating the new value --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index daa9e90..5d9cb37 100644 --- a/main.cpp +++ b/main.cpp @@ -626,7 +626,7 @@ int main() const bool inactivity_threshold = (std::chrono::system_clock::now() - last_user_action) > std::chrono::seconds(30); if(auto_refresh_interval != -1 && update_pending && inactivity_threshold) { action_refresh_all_channels(false); - std::chrono::system_clock::now() + std::chrono::seconds(auto_refresh_interval); + next_update = std::chrono::system_clock::now() + std::chrono::seconds(auto_refresh_interval); } } else if(tui_handle_action(*event, actions)) { last_user_action = std::chrono::system_clock::now();