diff --git a/packages/core/cyclist.mjs b/packages/core/cyclist.mjs index 4112e1c9..562a91b0 100644 --- a/packages/core/cyclist.mjs +++ b/packages/core/cyclist.mjs @@ -47,7 +47,7 @@ export class Cyclist { ); } getPhase() { - return this.getTime() - this.origin; + return this.getTime() - this.origin - this.latency; } setStarted(v) { this.started = v; diff --git a/packages/core/time.mjs b/packages/core/time.mjs index 296ea5b9..80daaf53 100644 --- a/packages/core/time.mjs +++ b/packages/core/time.mjs @@ -1,4 +1,3 @@ -console.log('load time.mjs'); let time; export function getTime() { if (!time) { @@ -8,6 +7,5 @@ export function getTime() { } export function setTime(func) { - console.log('setTime!'); time = func; }