mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
fix(menubar): drop the ' tok' suffix from the Total Tokens metric (#511)
Per #497 feedback: with Total Tokens selected the bar showed e.g. '0 tok'. The user picked the metric, so the unit is redundant; show just the number (the flame already disambiguates it from cost). Compact mode already had no suffix; this only changes the wide rendering.
This commit is contained in:
parent
a3da2ded2a
commit
844fdde4cd
1 changed files with 1 additions and 1 deletions
|
|
@ -734,7 +734,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSPopoverDelegate {
|
|||
valueText = compact ? "↑\(out)↓\(inp)\(suffix)" : " ↑\(out) ↓\(inp)\(suffix)"
|
||||
} else if store.displayMetric == .totalTokens, let p = menubarPayload?.current {
|
||||
let total = formatTokensMenubar(Double(p.inputTokens + p.outputTokens))
|
||||
valueText = compact ? "\(total)\(suffix)" : " \(total) tok\(suffix)"
|
||||
valueText = compact ? "\(total)\(suffix)" : " \(total)\(suffix)"
|
||||
} else if store.displayMetric == .credits, let p = menubarPayload?.current {
|
||||
let credits = formatTokensMenubar((p.codexCredits ?? 0).rounded())
|
||||
valueText = compact ? "\(credits)cr\(suffix)" : " \(credits) credits\(suffix)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue