mirror of https://github.com/xzeldon/htop.git
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