Files
glances/tests
nicolargo a7b9992ae8 feat(v5): mem renderer pulls short_name from schema + drop label-column floors
User feedback: column widths shouldn't reserve space for label variants
the renderer never uses. Add v4-style short_name to mem and let the
auto-size adapt:

  mem.available.short_name = 'avail'    (9 -> 5 chars)
  mem.inactive.short_name  = 'inactiv'  (8 -> 7 chars)
  mem.buffers.short_name   = 'buffer'   (7 -> 6 chars)

The mem render_curses_v5 now resolves every label via
field_label(..., prefer_short=True), so adding/changing a short_name
in the schema is enough — no renderer edit needed.

The label-column floors in cpu and mem renderers
(_CPU_LABEL_MIN_WIDTHS / _MEM_LABEL_MIN_WIDTHS) are gone too: labels
are constant strings so the content-driven auto-size is naturally
stable. Only value columns still need a fixed floor.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 16:15:24 +02:00
..
2026-05-12 11:31:05 +02:00