Merge pull request #779 from BenBE/percent-highlight

Highlight percentages similar to large numbers
This commit is contained in:
Nathan Scott 2021-09-14 12:53:33 +10:00 committed by GitHub
commit c096712b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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