MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / roundSessionUnits

Function roundSessionUnits

web/src/server/free-session/public-api.ts:54–56  ·  view source on GitHub ↗
(units: number)

Source from the content-addressed store, hash-verified

52} from './types'
53
54function roundSessionUnits(units: number): number {
55 return Math.round(units * 10) / 10
56}
57
58function canStartSession(snapshot: FreebuffSessionRateLimit): boolean {
59 return snapshot.recentCount < snapshot.limit

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected