diff options
author | Nathan Scott <natoscott@users.noreply.github.com> | 2021-09-14 12:53:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 12:53:33 +1000 |
commit | c096712b8d8735c2d3de4f1cd6d53d47d2d4713d (patch) | |
tree | d4d423de7401356f98b43f644e99e702c839f6a9 | |
parent | 68c00b9cdb8ea9a841f322effb385efce1436573 (diff) | |
parent | be82448bd5adcfe5d05d980c7a05bc9655443fe8 (diff) |
Merge pull request #779 from BenBE/percent-highlight
Highlight percentages similar to large numbers
-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_MEGABYTES]; xSnprintf(buffer, n, "%4d ", (int)val); } } else { |