diff --git a/web/src/routes/index.tsx b/web/src/routes/index.tsx index c31418f..ab4c34a 100644 --- a/web/src/routes/index.tsx +++ b/web/src/routes/index.tsx @@ -81,6 +81,10 @@ type StatusState = }; // Helper functions +const formatNumber = (num: number): string => { + return num.toLocaleString(); +}; + const getStatusIcon = (status: Status | "Unreachable"): StatusIcon => { const statusMap: Record = { Active: { icon: CheckCircle, color: "green" }, @@ -323,7 +327,7 @@ function App() { ) : shouldShowTiming ? ( - {state.timing.health}ms + {formatNumber(state.timing.health!)}ms ) : null}