Changes
This commit is contained in:
parent
e88c493182
commit
4f1e81a1de
3
index.js
3
index.js
|
@ -74,6 +74,7 @@ function sleep(ms) {
|
|||
}
|
||||
: foundChange),
|
||||
e));
|
||||
res.catch(e => errors.push(res));
|
||||
resps.push(res);
|
||||
|
||||
if (i + step < end)
|
||||
|
@ -110,6 +111,6 @@ function sleep(ms) {
|
|||
|
||||
let diff = (foundChange.remoteTime - (foundChange.beginTime + foundChange.endTime) / 2);
|
||||
|
||||
console.log("remote_time = local_time "+(diff < 0 ? "-" : "+")+" " + Math.abs(diff)+ " s");
|
||||
console.log("remote_time = local_time "+(diff < 0 ? "-" : "+")+" " + Math.abs(Math.round(diff*1000)/1000)+ " s");
|
||||
process.exit();
|
||||
})(new URL(positionals[0])))
|
||||
|
|
Loading…
Reference in a new issue