mirror of https://github.com/xzeldon/htop.git
Merge pull request #779 from BenBE/percent-highlight
Highlight percentages similar to large numbers
This commit is contained in:
commit
c096712b8d
|
@ -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_MEGABYTES];
|
||||||
xSnprintf(buffer, n, "%4d ", (int)val);
|
xSnprintf(buffer, n, "%4d ", (int)val);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue