diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-09-05 08:46:01 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2021-09-05 18:49:05 +0200 |
commit | 3f805cf3473c09b999e37b3fc4974fbcc562e9b3 (patch) | |
tree | f7e16cca51a577e3e76f945729429de4ad84c94a | |
parent | 556d7c03e8876eb440c9033ec9e9c533349deaf8 (diff) |
Highlight large percentages similar to large memory columns
-rw-r--r-- | Process.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -715,8 +715,10 @@ void Process_printPercentage(float val, char* buffer, int n, int* attr) { } xSnprintf(buffer, n, "%4.1f ", val); } else if (val < 999) { + *attr = CRT_colors[PROCESS_MEGABYTES]; xSnprintf(buffer, n, "%3d. ", (int)val); } else { + *attr = CRT_colors[PROCESS_GIGABYTES]; xSnprintf(buffer, n, "%4d ", (int)val); } } else { |