diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-10-03 18:24:13 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-10-07 16:24:41 +0200 |
| commit | 5e4c979993e9dff0200facac7cf5f4baa0b7267a (patch) | |
| tree | 1c2a995fcb35e5facb2c9ac95a0ec4c4a6c0b693 | |
| parent | c52b817248f8af2965b6f9ffd0c2a34776383da7 (diff) | |
| download | mullvadvpn-5e4c979993e9dff0200facac7cf5f4baa0b7267a.tar.xz mullvadvpn-5e4c979993e9dff0200facac7cf5f4baa0b7267a.zip | |
Fix documentation
| -rw-r--r-- | mullvad-daemon/src/version_check.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mullvad-daemon/src/version_check.rs b/mullvad-daemon/src/version_check.rs index b4ed7939f2..604bc3c672 100644 --- a/mullvad-daemon/src/version_check.rs +++ b/mullvad-daemon/src/version_check.rs @@ -14,8 +14,9 @@ const VERSION_INFO_FILENAME: &str = "version-info.json"; const DOWNLOAD_TIMEOUT: Duration = Duration::from_secs(15); /// How often the updater should wake up to check the in-memory cache. -/// This check is very cheap. The only reason to not have it very often is because if downloading -/// constantly fails it will try very often and fill the logs etc. +/// This exist to prevent problems around sleeping. If you set it to sleep +/// for `UPDATE_INTERVAL` directly and the computer is suspended, that clock +/// won't tick, and the next update will be after 24 hours of the computer being *on*. const UPDATE_CHECK_INTERVAL: Duration = Duration::from_secs(60 * 5); const UPDATE_INTERVAL: Duration = Duration::from_secs(60 * 60 * 24); |
