diff options
-rw-r--r-- | src/Cache.cpp | 2 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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<string, ContentByUrlResult> 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; |