mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-09 19:48:37 +01:00
fix typo of time desync detection
This commit is contained in:
parent
8e9290fcc9
commit
b93abca795
@ -241,7 +241,7 @@ function ohNo() {
|
|||||||
try {
|
try {
|
||||||
icanhazepoch().then(sec => {
|
icanhazepoch().then(sec => {
|
||||||
const calcDelta = Date.now() - sec * 1000;
|
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");
|
addToast("Time isn't synchronized", "Please synchronize your computer time to NTP servers");
|
||||||
deltaTime = calcDelta;
|
deltaTime = calcDelta;
|
||||||
console.log("applying delta time " + deltaTime);
|
console.log("applying delta time " + deltaTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user