diff options
author | gorhill <rhill@raymondhill.net> | 2014-08-20 23:19:27 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2014-08-20 23:19:27 -0400 |
commit | e95fa11e537bb03d475c68ea50ceee7c0c96bf12 (patch) | |
tree | c19ecc897c74c578aee470415c64cb7033c20928 /js | |
parent | bcfb69a77791bcd8c69b6d10fd6ce0b24be41230 (diff) | |
download | uBlock-e95fa11e537bb03d475c68ea50ceee7c0c96bf12.zip uBlock-e95fa11e537bb03d475c68ea50ceee7c0c96bf12.tar.gz uBlock-e95fa11e537bb03d475c68ea50ceee7c0c96bf12.tar.bz2 |
fine tuning auto update period
Diffstat (limited to 'js')
-rw-r--r-- | js/background.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/background.js b/js/background.js index e1bc77f..ea07757 100644 --- a/js/background.js +++ b/js/background.js @@ -27,6 +27,13 @@ var µBlock = (function() { /******************************************************************************/ +var oneSecond = 1000; +var oneMinute = 60 * oneSecond; +var oneHour = 60 * oneMinute; +var oneDay = 24 * oneHour; + +/******************************************************************************/ + return { manifest: chrome.runtime.getManifest(), @@ -46,7 +53,9 @@ return { allowedRequestCount: 0 }, - updateAssetsEvery: 47 * 60 * 60 * 1000, + // EasyList, EasyPrivacy and many others have an update frequency + // of 4 days, as per list headers. + updateAssetsEvery: 75 * oneHour + 23 * oneMinute + 53 * oneSecond + 605, projectServerRoot: 'https://raw.githubusercontent.com/gorhill/uBlock/master/', userFiltersPath: 'assets/user/filters.txt', |