timedata: whitespace.

This commit is contained in:
Christopher Jeffrey 2017-08-10 12:32:49 -07:00
parent 7db5fd1537
commit 5c7c66332f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -69,17 +69,20 @@ TimeData.prototype.add = function add(id, time) {
if (Math.abs(median) >= 70 * 60) { if (Math.abs(median) >= 70 * 60) {
if (!this.checked) { if (!this.checked) {
let match = false; let match = false;
for (const offset of this.samples) { for (const offset of this.samples) {
if (offset !== 0 && Math.abs(offset) < 5 * 60) { if (offset !== 0 && Math.abs(offset) < 5 * 60) {
match = true; match = true;
break; break;
} }
} }
if (!match) { if (!match) {
this.checked = true; this.checked = true;
this.emit('mismatch'); this.emit('mismatch');
} }
} }
median = 0; median = 0;
} }