This commit is contained in:
Kimapr 2025-04-27 15:07:12 +05:00
parent e88c493182
commit 4f1e81a1de
Signed by: kimapr
GPG key ID: 9F631B9803377CE4

View file

@ -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])))