MCPcopy Create free account
hub / github.com/SagerNet/sing-box-dashboard / formatMemoryBytes

Function formatMemoryBytes

src/api/format.ts:28–30  ·  view source on GitHub ↗
(value: number | bigint)

Source from the content-addressed store, hash-verified

26 if (formatter === undefined) {
27 formatter = new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
28 relativeTimeFormatters.set(key, formatter);
29 }
30 return formatter;
31}
32
33function formatUnits(value: number, base: number): string {

Callers 1

renderCardFunction · 0.90

Calls 1

formatUnitsFunction · 0.85

Tested by

no test coverage detected