(raw: string | undefined)
| 570 | } |
| 571 | |
| 572 | function parsePollMs(raw: string | undefined): number { |
| 573 | if (raw === undefined || raw === '') return DEFAULT_PPID_POLL_MS; |
| 574 | const parsed = Number(raw); |
| 575 | if (!Number.isFinite(parsed)) return DEFAULT_PPID_POLL_MS; |
| 576 | if (parsed < 0) return DEFAULT_PPID_POLL_MS; |
| 577 | return Math.floor(parsed); |
| 578 | } |
| 579 | |
| 580 | function parseHostPpid(raw: string | undefined): number | null { |
| 581 | if (raw === undefined || raw === '') return null; |
no outgoing calls
no test coverage detected