Skip to content

Commit a22f215

Browse files
authored
Update use-pawdio-lab.ts
1 parent d3759e7 commit a22f215

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ui/use-pawdio-lab.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,13 @@ export function usePawdioLabController() {
540540
saveOverallBarChart: false
541541
};
542542
const report = await invokeLatencyRaw(request);
543-
if (report.averageDelayMs !== null) {
543+
const averageDelay = report.averageDelayMs;
544+
if (averageDelay !== null) {
544545
setLatencyCalibration((prev) => ({
545546
...prev,
546-
globalOffsetMs: report.averageDelayMs
547+
globalOffsetMs: averageDelay
547548
}));
548-
appendLog(`[calibration] global offset = ${report.averageDelayMs.toFixed(2)} ms`);
549+
appendLog(`[calibration] global offset = ${averageDelay.toFixed(2)} ms`);
549550
} else {
550551
appendLog("[calibration] global calibration failed");
551552
}

0 commit comments

Comments
 (0)