mirror of
https://github.com/nicolargo/glances.git
synced 2026-06-04 11:56:23 -04:00
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>