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