MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getShmSizeMb

Function getShmSizeMb

packages/cli/src/telemetry/system.ts:143–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 * Docker's default 64MB limit causes crashes.
142 */
143export function getShmSizeMb(): number | null {
144 if (platform() !== "linux") return null;
145 try {
146 const stats = statfsSync("/dev/shm");
147 return bytesToMb(stats.bsize * stats.blocks);
148 } catch {
149 return null;
150 }
151}
152
153/**
154 * Get available disk space in MB at a given path.

Callers 1

checkShmFunction · 0.85

Calls 1

bytesToMbFunction · 0.85

Tested by

no test coverage detected