MCPcopy
hub / github.com/game1024/OpenSpeedy / fmtGpuMb

Function fmtGpuMb

src/components/TitleBar.tsx:20–23  ·  view source on GitHub ↗
(mb: number)

Source from the content-addressed store, hash-verified

18}
19
20function fmtGpuMb(mb: number): string {
21 if (mb >= 1024) return `${(mb / 1024).toFixed(1)} GB`;
22 return `${mb} MB`;
23}
24
25export default function TitleBar({ osVer, cpuPct, memPct, gpuName, gpuUsedMb, gpuTotalMb }: TitleBarProps) {
26 const [wide, setWide] = useState(window.innerWidth >= STATS_BREAKPOINT);

Callers 1

GPUStatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected