From a11a1ab4adab2c277e90ddeddd94e81bd4f5ed79 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 20 Jul 2017 01:09:52 -0700 Subject: [PATCH] timedata: minor. --- lib/protocol/timedata.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/protocol/timedata.js b/lib/protocol/timedata.js index 326f3401..5d27b22e 100644 --- a/lib/protocol/timedata.js +++ b/lib/protocol/timedata.js @@ -7,8 +7,8 @@ 'use strict'; -const util = require('../utils/util'); const EventEmitter = require('events'); +const util = require('../utils/util'); /** * An object which handles "adjusted time". This may not @@ -37,7 +37,7 @@ function TimeData(limit) { this.known = new Map(); this.limit = limit; this.offset = 0; - this._checked = false; + this.checked = false; } util.inherits(TimeData, EventEmitter); @@ -70,7 +70,7 @@ TimeData.prototype.add = function add(id, time) { this.offset = median; } else { this.offset = 0; - if (!this._checked) { + if (!this.checked) { let match = false; for (let offset of this.samples) { if (offset !== 0 && Math.abs(offset) < 5 * 60) { @@ -79,7 +79,7 @@ TimeData.prototype.add = function add(id, time) { } } if (!match) { - this._checked = true; + this.checked = true; this.emit('mismatch'); } }