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:
Henry 2016-10-11 14:47:57 +08:00
parent d30c88bef8
commit 25e23d96ea

View File

@ -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));