fix(stats): format market share tokens

This commit is contained in:
Adam
2026-06-22 07:46:11 -05:00
parent 7b750a8f20
commit 36264ccf90
2 changed files with 6 additions and 5 deletions
+2 -2
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),
})),
},
]