Process_printPercentage using one color transition

Update Process_printPercentage such that color change happens only once at 100% and beyond.
This commit is contained in:
Nathan Scott 2021-09-14 11:16:34 +10:00 committed by GitHub
parent 3f805cf347
commit be82448bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {