(content: string | null)
| 50 | } |
| 51 | |
| 52 | function 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 | |
| 60 | function parsePositiveByteLimitMb(content: string, noLimitCutoffBytes?: bigint): number | null { |
| 61 | if (!/^\d+$/.test(content)) { |
no test coverage detected