fix(stats): format market share tokens
This commit is contained in:
parent
7b750a8f20
commit
36264ccf90
2 changed files with 6 additions and 5 deletions
|
|
@ -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),
|
||||
})),
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue