(raw: string | undefined)
| 73 | * default. |
| 74 | */ |
| 75 | export function parsePpidPollMs(raw: string | undefined): number { |
| 76 | if (raw === undefined || raw === '') return DEFAULT_PPID_POLL_MS; |
| 77 | const parsed = Number(raw); |
| 78 | if (!Number.isFinite(parsed)) return DEFAULT_PPID_POLL_MS; |
| 79 | if (parsed < 0) return DEFAULT_PPID_POLL_MS; |
| 80 | return Math.floor(parsed); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Parse the host PID propagated across the `--liftoff-only` re-exec |
no outgoing calls
no test coverage detected