(value: string | undefined)
| 54 | } |
| 55 | |
| 56 | export function getIdleShutdownMs(value: string | undefined): number { |
| 57 | const normalized = value?.trim().toLowerCase(); |
| 58 | if (normalized && ["0", "false", "off", "disabled", "none"].includes(normalized)) return 0; |
| 59 | return Math.max(MIN_IDLE_TIMEOUT_MS, toIntegerOr(value, DEFAULT_IDLE_TIMEOUT_MS)); |
| 60 | } |
| 61 | |
| 62 | export function getParentPollMs(value: string | undefined): number { |
| 63 | return Math.max(MIN_PARENT_POLL_MS, toIntegerOr(value, DEFAULT_PARENT_POLL_MS)); |
no test coverage detected