Highlight large percentages similar to large memory columns

This commit is contained in:
Benny Baumann 2021-09-05 08:46:01 +02:00
parent 556d7c03e8
commit 3f805cf347
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); xSnprintf(buffer, n, "%4.1f ", val);
} else if (val < 999) { } else if (val < 999) {
*attr = CRT_colors[PROCESS_MEGABYTES];
xSnprintf(buffer, n, "%3d. ", (int)val); xSnprintf(buffer, n, "%3d. ", (int)val);
} else { } else {
*attr = CRT_colors[PROCESS_GIGABYTES];
xSnprintf(buffer, n, "%4d ", (int)val); xSnprintf(buffer, n, "%4d ", (int)val);
} }
} else { } else {