MCPcopy Create free account
hub / github.com/modem-dev/hunk / formatBytes

Function formatBytes

scripts/daemon-memory-check.ts:227–232  ·  view source on GitHub ↗
(bytes: number | null)

Source from the content-addressed store, hash-verified

225}
226
227function formatBytes(bytes: number | null) {
228 if (bytes === null) {
229 return "n/a";
230 }
231 return `${(bytes / 1024 / 1024).toFixed(1)} MiB`;
232}
233
234function makePatch(fileIndex: number, hunksPerFile: number, linesPerHunk: number) {
235 const chunks: string[] = [];

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected