diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-29 13:03:09 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-03-27 19:49:23 +0100 |
commit | cbcfc5f7d08e210a3477071607a3195fa31f06a3 (patch) | |
tree | bda4950904fd66c6c0f0f26dda80d8eb7847446d /Row.c | |
parent | b61685779cdf696ba4135a97ce66075c337c7562 (diff) |
Introduce autoTitleRightAlign column flag
Instead of handling PERCENT_CPU as a special case for whether to align
the title of a dynamically sized column to the right or the left
introduce a new flag, which can be reused by other columns.
Diffstat (limited to 'Row.c')
-rw-r--r-- | Row.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -154,7 +154,7 @@ static const char* alignedTitleProcessField(ProcessField field, char* titleBuffe } if (Process_fields[field].autoWidth) { - if (field == PERCENT_CPU) + if (Process_fields[field].autoTitleRightAlign) xSnprintf(titleBuffer, titleBufferSize, "%*s ", Row_fieldWidths[field], title); else xSnprintf(titleBuffer, titleBufferSize, "%-*.*s ", Row_fieldWidths[field], Row_fieldWidths[field], title); |