Bug 1146054 - browser now reports a prolonged readinglist sync error after the correct time. r=adw

This commit is contained in:
Mark Hammond 2015-03-24 10:28:14 +11:00
parent d2b6bd880b
commit 9fac61b7a2

View File

@ -457,7 +457,7 @@ let gSyncUI = {
let lastSync, threshold, prolonged;
try {
lastSync = new Date(Services.prefs.getCharPref("readinglist.scheduler.lastSync"));
threshold = new Date(Date.now() - Services.prefs.getIntPref("services.sync.errorhandler.networkFailureReportTimeout"));
threshold = new Date(Date.now() - Services.prefs.getIntPref("services.sync.errorhandler.networkFailureReportTimeout") * 1000);
prolonged = lastSync <= threshold;
} catch (ex) {
// no pref, assume not prolonged.