From 81943b72a9a8de72da9dbdd6fa6337aae4d93ccf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 22 May 2018 15:11:36 +0200 Subject: Increase not active timer --- src/Cache.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Cache.cpp b/src/Cache.cpp index e5d910c..9039bd6 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -27,7 +27,7 @@ using namespace TinyProcessLib; namespace dchat { static unordered_map contentUrlCache; - const i64 CONTENT_NOT_VISIBLE_AGE_MS = 20000; // Delete content from cache after a specified amount of time if the content is not visible on the screen + const i64 CONTENT_NOT_VISIBLE_AGE_MS = 30000; // Delete content from cache after a specified amount of time if the content is not visible on the screen static boost::filesystem::path getHomeDir() { diff --git a/src/main.cpp b/src/main.cpp index 1c359ca..8b8bddf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -912,7 +912,7 @@ int main(int argc, char **argv) channel->update(); } - if(lastFocusedTimer.getElapsedTime().asMilliseconds() > 3000) + if(lastFocusedTimer.getElapsedTime().asMilliseconds() > 5000) { this_thread::sleep_for(chrono::milliseconds(250)); continue; -- cgit v1.2.3