From be82448bd5adcfe5d05d980c7a05bc9655443fe8 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 14 Sep 2021 11:16:34 +1000 Subject: [PATCH] Process_printPercentage using one color transition Update Process_printPercentage such that color change happens only once at 100% and beyond. --- Process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {