MCPcopy Create free account
hub / github.com/codehamr/codehamr / humanRate

Function humanRate

internal/tui/format.go:48–57  ·  view source on GitHub ↗

humanRate renders throughput: `25 tok/s`, `5.3 tok/s`. Returns "" on degenerate input (no tokens or zero elapsed) so the caller omits the segment. Sub-10 tok/s keeps one decimal: reasoning models sit at 1.x where that decimal is the only signal; above 10 it's noise.

(tokens int, d time.Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

finalizeTurnMethod · 0.85
TestHumanRateFormatFunction · 0.85
renderStatusBarMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestHumanRateFormatFunction · 0.68