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:
iamtoruk 2026-08-10 10:37:10 -07:00
parent 8e61b205b3
commit 5bfc0e436c

View file

@ -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>