зеркало из https://github.com/mozilla/pjs.git
305843 - update timer should not fire every 5 seconds - fire every 10 minutes instead. r=brettw@gmail.com, a=chase
This commit is contained in:
Родитель
bb4552f78e
Коммит
537f3a9418
|
@ -112,7 +112,7 @@ pref("app.update.nagTimer.download", 86400);
|
|||
pref("app.update.nagTimer.restart", 1800);
|
||||
// Interval: When all registered timers should be checked (in milliseconds)
|
||||
// default=5 seconds
|
||||
pref("app.update.timer", 5000);
|
||||
pref("app.update.timer", 600000);
|
||||
|
||||
// Whether or not we show a dialog box informing the user that the update was
|
||||
// successfully applied. This is off in Firefox by default since we show a
|
||||
|
|
|
@ -2225,7 +2225,7 @@ function TimerManager() {
|
|||
const nsITimer = Components.interfaces.nsITimer;
|
||||
this._timer = Components.classes["@mozilla.org/timer;1"]
|
||||
.createInstance(nsITimer);
|
||||
var timerInterval = getPref("getIntPref", PREF_APP_UPDATE_TIMER, 5000);
|
||||
var timerInterval = getPref("getIntPref", PREF_APP_UPDATE_TIMER, 600000);
|
||||
this._timer.initWithCallback(this, timerInterval,
|
||||
nsITimer.TYPE_REPEATING_SLACK);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче