diff options
author | Nathan Scott <natoscott@users.noreply.github.com> | 2021-09-14 11:16:34 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 11:16:34 +1000 |
commit | be82448bd5adcfe5d05d980c7a05bc9655443fe8 (patch) | |
tree | 19a3f5d45f160b5d47ee323a06d649bb17db755b | |
parent | 3f805cf3473c09b999e37b3fc4974fbcc562e9b3 (diff) |
Process_printPercentage using one color transition
Update Process_printPercentage such that color change happens only once at 100% and beyond.
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -718,7 +718,7 @@ void Process_printPercentage(float val, char* buffer, int n, int* attr) { *attr = CRT_colors[PROCESS_MEGABYTES]; xSnprintf(buffer, n, "%3d. ", (int)val); } else { - *attr = CRT_colors[PROCESS_GIGABYTES]; + *attr = CRT_colors[PROCESS_MEGABYTES]; xSnprintf(buffer, n, "%4d ", (int)val); } } else { |