commit 29147b57f0798e97c2d4ff0bc930ecd0b8de017b
parent 7810224b93472261efe9cd7cfdb94c73d2541f50
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 4 Mar 2016 21:41:16 -0800
increase the threshold for redownloading a cached index to a week
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/index.cpp b/src/index.cpp
@@ -83,7 +83,7 @@ Download *RemoteIndex::fetch(const Remote &remote, const bool stale)
time_t mtime = 0, now = time(nullptr);
if(FS::mtime(pathFor(remote.name()), &mtime)) {
- const time_t threshold = stale ? 2 : (24 * 3600);
+ const time_t threshold = stale ? 2 : (7 * 24 * 3600);
if(mtime > now - threshold)
return nullptr;