MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / formatBytes

Function formatBytes

src/components/SystemInfo.tsx:29–32  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

27}
28
29function formatBytes(bytes: number): string {
30 const gb = bytes / (1024 * 1024 * 1024);
31 return `${gb.toFixed(1)} GB`;
32}
33
34export function SystemInfo({ data }: SystemInfoProps) {
35 if (!data) {

Callers 1

SystemInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected