fix(stats): format market share tokens

This commit is contained in:
Adam 2026-06-22 07:45:57 -05:00
commit 36264ccf90
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 6 additions and 5 deletions

View file

@ -538,11 +538,11 @@ function buildMarketShare(rows: ProviderMetricRow[], product: UsageProduct, rang
return [
{
date: bucket.label,
total: round(totalTokens / 1_000_000_000_000, 2),
total: round(totalTokens / 1_000_000_000_000, 6),
authors: withOther.map((item) => ({
author: item.provider === "Other" ? "Other" : formatProvider(item.provider),
share: round((item.tokens / totalTokens) * 100, 1),
tokens: round(item.tokens / 1_000_000_000_000, 2),
tokens: round(item.tokens / 1_000_000_000_000, 6),
})),
},
]