mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-21 06:24:32 +00:00
fix(dash): render modelEfficiency one-shot rate verbatim, it is already a percent
The payload's current.oneShotRate is a fraction but modelEfficiency[].oneShotRate is 0-100 (the TUI and menubar render it verbatim); the dash multiplied the latter by 100 again and showed 10000% / 8570% in the Model efficiency table. Caught live during the release surface sweep.
This commit is contained in:
parent
8e61b205b3
commit
5bfc0e436c
1 changed files with 4 additions and 1 deletions
|
|
@ -172,7 +172,10 @@ function DeviceView({ payload, isRemote, unit }: { payload?: Payload; isRemote:
|
|||
rows={(c?.modelEfficiency ?? []).slice(0, 10).map((m) => ({
|
||||
name: m.name,
|
||||
costPerEdit: usd(m.costPerEdit),
|
||||
oneShot: `${Math.round(m.oneShotRate * 100)}%`,
|
||||
// modelEfficiency.oneShotRate arrives as a PERCENT (0-100),
|
||||
// unlike current.oneShotRate which is a fraction - the TUI and
|
||||
// menubar render it verbatim; multiplying again showed 10000%.
|
||||
oneShot: `${Math.round(m.oneShotRate)}%`,
|
||||
}))}
|
||||
/>
|
||||
</Panel>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue