MCPcopy Create free account
hub / github.com/coder/coder / getLatencyColor

Function getLatencyColor

site/src/utils/latency.ts:26–29  ·  view source on GitHub ↗
(
	latency?: number,
	type: "text" | "background" = "text",
)

Source from the content-addressed store, hash-verified

24};
25
26export const getLatencyColor = (
27 latency?: number,
28 type: "text" | "background" = "text",
29) => latencyColors[getLatencyLevel(latency)][type];

Callers 5

getDisplayLatencyFunction · 0.90
LatencyFunction · 0.90
ProxyRowFunction · 0.90
DERPRegionPageFunction · 0.90
UsersLatencyPanelFunction · 0.90

Calls 1

getLatencyLevelFunction · 0.85

Tested by

no test coverage detected