MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fmtBucket

Function fmtBucket

src/components/Stats.tsx:1171–1171  ·  view source on GitHub ↗
(count: number, p: number)

Source from the content-addressed store, hash-verified

1169 }).reduce((s, [, v]) => s + v, 0);
1170 const pct = (n: number) => Math.round(n / totalWithShots * 100);
1171 const fmtBucket = (count: number, p: number) => `${count} (${p}%)`;
1172 const b1 = bucket(1, 1);
1173 const b2_5 = bucket(2, 5);
1174 const b6_10 = bucket(6, 10);

Callers 1

renderOverviewToAnsiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected