timedata: whitespace.
This commit is contained in:
parent
7db5fd1537
commit
5c7c66332f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user