mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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:
parent
3f805cf347
commit
be82448bd5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user