mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 1305478 - Unify the initial update delay (for both v2 and v4) to 0~1 minute. r=francois
MozReview-Commit-ID: 7RbUUfCNQfk --HG-- extra : rebase_source : dd95a48fa9cffd77690ea663b3e343af8cb80ae6
This commit is contained in:
parent
d30c88bef8
commit
25e23d96ea
@ -196,8 +196,8 @@ PROT_ListManager.prototype.kickoffUpdate_ = function (onDiskTableData)
|
||||
{
|
||||
this.startingUpdate_ = false;
|
||||
var initialUpdateDelay = 3000;
|
||||
// Add a fuzz of 0-5 minutes.
|
||||
initialUpdateDelay += Math.floor(Math.random() * (5 * 60 * 1000));
|
||||
// Add a fuzz of 0-1 minutes for both v2 and v4 according to Bug 1305478.
|
||||
initialUpdateDelay += Math.floor(Math.random() * (1 * 60 * 1000));
|
||||
|
||||
// If the user has never downloaded tables, do the check now.
|
||||
log("needsUpdate: " + JSON.stringify(this.needsUpdate_, undefined, 2));
|
||||
|
Loading…
x
Reference in New Issue
Block a user