Bug 1411690 - Floor the repair advance and most recent repair timestamps. r=tcsc
authorKit Cambridge <kit@yakshaving.ninja>
Wed, 25 Oct 2017 13:54:44 -0700
changeset 388318 62758ee4d6e37632808f29ef52b56cb71d669b53
parent 388317 da4aaa3d6c59bb2807ab43a58a2594fa6edcae97
child 388319 56427ccc5fc97cd22678eb06665a89c9ddea0a16
push id32746
push useracraciun@mozilla.com
push dateThu, 26 Oct 2017 09:19:46 +0000
treeherdermozilla-central@485a03afaa23 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcsc
bugs1411690
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1411690 - Floor the repair advance and most recent repair timestamps. r=tcsc The timestamps are automatically truncated when they're stored in prefs, which is fine because we don't need millisecond precision. However, the truncation raises a warning, so we need to explicitly floor the values. MozReview-Commit-ID: BRflL6s0b1
services/sync/modules/doctor.js
--- a/services/sync/modules/doctor.js
+++ b/services/sync/modules/doctor.js
@@ -77,17 +77,17 @@ this.Doctor = {
           } catch (ex) {
             if (Async.isShutdownException(ex)) {
               throw ex;
             }
             log.error(`${collection} repairer failed`, ex);
           }
         }
       } finally {
-        this.lastRepairAdvance = this._now();
+        this.lastRepairAdvance = Math.floor(this._now());
       }
     }
   },
 
   _getEnginesToValidate(recentlySyncedEngines) {
     let result = {};
     for (let e of recentlySyncedEngines) {
       let prefPrefix = `engine.${e.name}.`;