mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-14 19:14:28 +00:00
fix: apply --project/--exclude to menubar per-provider today totals
The menubar status output computes per-provider today costs by iterating all providers after the main period blocks. That loop bypassed the project filter, so --project/--exclude affected the main totals but not the provider breakdown shown below them.
This commit is contained in:
parent
98c1e266d7
commit
d15532af0b
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ program
|
|||
const monthData = buildPeriodData('Month', fp(await parseAllSessions(getDateRange('month').range, pf)))
|
||||
const todayProviders: ProviderCost[] = []
|
||||
for (const p of await getAllProviders()) {
|
||||
const data = await parseAllSessions(todayRange, p.name)
|
||||
const data = fp(await parseAllSessions(todayRange, p.name))
|
||||
const cost = data.reduce((s, proj) => s + proj.totalCostUSD, 0)
|
||||
if (cost > 0) todayProviders.push({ name: p.displayName, cost })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue