Label chart axes in binary sizes and small percents, and windows in words
A bytes axis read "20.0BB" - compact's billion with a B after it - and a quiet node's CPU axis read 0% all the way up. Sizes are now binary like every other on these pages, a percent under ten keeps a decimal, and a window of an hour is "the last hour" rather than "1h0m0s". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
fe0875ee05
commit
9ae526302b
6 files changed
+57
-16
No files matched your search
@@ -126,7 +126,7 @@ func loadNodeCharts(ctx context.Context, h History, node string, replicas []stri
|
||||
window time.Duration, log *slog.Logger,
|
||||
) *nodeCharts {
|
||||
step := window / 60
|
||||
out := &nodeCharts{Window: window.String()}
|
||||
out := &nodeCharts{Window: windowWord(window)}
|
||||
quoted := fmt.Sprintf("%q", node)
|
||||
for _, p := range nodePanels {
|
||||
series, err := h.RangeQuery(ctx, fmt.Sprintf(p.expr, quoted), p.nameBy, window, step)
|
||||
|
||||
Reference in new issue
Block a user