MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parsePpidPollMs

Function parsePpidPollMs

src/mcp/ppid-watchdog.ts:75–81  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

73 * default.
74 */
75export 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

Callers 3

installPpidWatchdogMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected