aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-22 15:11:36 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-22 15:11:39 +0200
commit81943b72a9a8de72da9dbdd6fa6337aae4d93ccf (patch)
tree628120f2f5281aae438b02e2b1e60de2292640e8
parentb1e534009e564dee9517c0679230d380bd64f96c (diff)
Increase not active timer
-rw-r--r--src/Cache.cpp2
-rw-r--r--src/main.cpp2
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;