Limit WS IDs to 2 digits on access logs.

This commit is contained in:
LeoVasanko committed 2026-09-28 03:46:04 +00:00
1 parent bb1659e076
commit 5a16925935
1 file changed
+1 -1
+1 -1
View File
@@ -177,7 +177,7 @@ def _next_ws_id() -> int:
def _format_ws_id(ws_id: int, *, bright: bool = False) -> str:
value = str(ws_id) if ws_id >= 100 else f"{ws_id:02d}"
value = f"{ws_id % 100:02d}"
color = _WS_OPEN if bright else _WS_CLOSE
return f"{color}{value.rjust(3)}{_RESET}"