From b93abca7955535d22cc3bdcbd1a0c8c9841091ef Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 4 Sep 2021 11:35:00 -0300 Subject: [PATCH] fix typo of time desync detection --- src/main/resources/web/js/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/web/js/page.js b/src/main/resources/web/js/page.js index aa9109b..3e57fa1 100644 --- a/src/main/resources/web/js/page.js +++ b/src/main/resources/web/js/page.js @@ -241,7 +241,7 @@ function ohNo() { try { icanhazepoch().then(sec => { const calcDelta = Date.now() - sec * 1000; - if (Math.abs(calcDelta) > 100000) { + if (Math.abs(calcDelta) > 10000) { addToast("Time isn't synchronized", "Please synchronize your computer time to NTP servers"); deltaTime = calcDelta; console.log("applying delta time " + deltaTime);