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

Function bucketDuration

src/telemetry/index.ts:54–59  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

52}
53
54export function bucketDuration(ms: number): '<10s' | '10-60s' | '1-5m' | '5m+' {
55 if (ms < 10_000) return '<10s';
56 if (ms < 60_000) return '10-60s';
57 if (ms < 300_000) return '1-5m';
58 return '5m+';
59}
60
61/**
62 * Shared "a full index completed" event (CLI init/index + installer local

Callers 1

recordIndexEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected