MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / formatNumber4

Function formatNumber4

frontend/app/view/processviewer/processviewer.tsx:39–43  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

37// ---- format helpers ----
38
39function formatNumber4(n: number): string {
40 if (n < 10) return n.toFixed(2);
41 if (n < 100) return n.toFixed(1);
42 return Math.floor(n).toString().padStart(4);
43}
44
45function fmtMem(bytes: number): string {
46 if (bytes == null) return "";

Callers 2

fmtMemFunction · 0.85
fmtLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected