tools(rpo-replay): round live distance readout to 10 m

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0187rSCa4AKJPGw6uiuPSGyX
This commit is contained in:
Claude committed 2026-11-08 06:22:46 +00:00
1 parent a93f2bb4d7
commit bfe2e964fb
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@ export function createHud(ctx) {
function fmtSep(m) {
if (m >= 10e3) return `${fmtNum(m / 1000)}<small>km</small>`;
if (m >= 1000) return `${(m / 1000).toFixed(1)}<small>km</small>`;
return `${Math.round(m / 5) * 5}<small>m</small>`;
return `${Math.round(m / 10) * 10}<small>m</small>`;
}
function perSecond(r) {
if (r < 90) return `${Math.round(r)} sec`;