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

Function parsePollMs

src/mcp/proxy.ts:577–583  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

575}
576
577function 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
585function parseHostPpid(raw: string | undefined): number | null {
586 if (raw === undefined || raw === '') return null;

Callers 2

startPpidWatchdogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected