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

Function parsePollMs

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

Source from the content-addressed store, hash-verified

570}
571
572function 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
580function parseHostPpid(raw: string | undefined): number | null {
581 if (raw === undefined || raw === '') return null;

Callers 2

startPpidWatchdogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected