mirror of
https://github.com/stablyai/orca.git
synced 2026-09-27 16:02:35 +00:00
perf(usage): skip session scans for empty breakdowns
This commit is contained in:
@@ -111,6 +111,9 @@ export function buildBreakdown(
|
||||
): CodexUsageBreakdownRow[] {
|
||||
const rows = new Map<string, CodexUsageBreakdownRow>()
|
||||
const filteredDaily = getFilteredDaily(state, scope, range)
|
||||
if (filteredDaily.length === 0) {
|
||||
return []
|
||||
}
|
||||
const filteredSessions = getFilteredSessions(state, scope, range)
|
||||
|
||||
for (const daily of filteredDaily) {
|
||||
|
||||
Reference in New Issue
Block a user