From 4f1e81a1defbde12276643b0b57b55f125c1cb45 Mon Sep 17 00:00:00 2001 From: Kimapr Date: Sun, 27 Apr 2025 15:07:12 +0500 Subject: [PATCH] Changes --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 566c131..6d17084 100755 --- a/index.js +++ b/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])))