mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-11 23:00:16 +00:00
Usage popover: add cumulative Total input row
Fresh + cache read + cache write — the session's billed input volume; shown only when a cache split exists.
This commit is contained in:
@@ -660,9 +660,14 @@ function UsageChip({
|
||||
</div>
|
||||
<div className="mt-0.5 flex flex-col gap-0.5">
|
||||
{stat("Input", t.input)}
|
||||
{stat("Output", t.output)}
|
||||
{t.cache_read > 0 && stat("Cache read", t.cache_read)}
|
||||
{t.cache_write > 0 && stat("Cache write", t.cache_write)}
|
||||
{/* Cumulative billed input volume = fresh + cache reads + cache
|
||||
writes (each class bills at its own rate). Shown only when a
|
||||
cache split exists — otherwise it would duplicate Input. */}
|
||||
{t.cache_read + t.cache_write > 0 &&
|
||||
stat("Total input", t.input + t.cache_read + t.cache_write)}
|
||||
{stat("Output", t.output)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user