summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <natoscott@users.noreply.github.com>2021-09-14 11:16:34 +1000
committerGitHub <noreply@github.com>2021-09-14 11:16:34 +1000
commitbe82448bd5adcfe5d05d980c7a05bc9655443fe8 (patch)
tree19a3f5d45f160b5d47ee323a06d649bb17db755b
parent3f805cf3473c09b999e37b3fc4974fbcc562e9b3 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Process.c b/Process.c
index 6ecd217c..556acf42 100644
--- a/Process.c
+++ b/Process.c
@@ -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 {

© 2014-2024 Faster IT GmbH | imprint | privacy policy