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

Function parseCgroupV1LimitMb

packages/engine/src/services/systemMemory.ts:52–58  ·  view source on GitHub ↗
(content: string | null)

Source from the content-addressed store, hash-verified

50}
51
52function parseCgroupV1LimitMb(content: string | null): number | null {
53 if (content === null) {
54 return null;
55 }
56
57 return parsePositiveByteLimitMb(content.trim(), CGROUP_V1_NO_LIMIT_CUTOFF_BYTES);
58}
59
60function parsePositiveByteLimitMb(content: string, noLimitCutoffBytes?: bigint): number | null {
61 if (!/^\d+$/.test(content)) {

Callers 1

parseCgroupLimitMbFunction · 0.85

Calls 1

parsePositiveByteLimitMbFunction · 0.85

Tested by

no test coverage detected