mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[web] Fix clockDelta computation in socket diagnostic (#27022)
GitOrigin-RevId: f27ac2b182c650a38cf74806152e10460a8dd21b
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ export function useSocketManager() {
|
||||
const beforeTime = info.data.time
|
||||
const now = Date.now()
|
||||
const latency = now - beforeTime
|
||||
const clockDelta = (beforeTime + beforeTime) / 2 - info.serverTime
|
||||
const clockDelta = (beforeTime + now) / 2 - info.serverTime
|
||||
setDebugInfo(prev => ({
|
||||
...prev,
|
||||
received: prev.received + 1,
|
||||
|
||||
Reference in New Issue
Block a user