mirror of https://github.com/xzeldon/htop.git
Use class value only to display idle I/O priority.
As suggested by @wolfgang42. Fixes #100.
This commit is contained in:
parent
89d15399c5
commit
e9ecbd05bc
|
@ -352,7 +352,7 @@ void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field)
|
|||
} else if (klass == IOPRIO_CLASS_RT) {
|
||||
attr = CRT_colors[PROCESS_HIGH_PRIORITY];
|
||||
snprintf(buffer, n, "R%1d ", IOPriority_data(lp->ioPriority));
|
||||
} else if (lp->ioPriority == IOPriority_Idle) {
|
||||
} else if (klass == IOPRIO_CLASS_IDLE) {
|
||||
attr = CRT_colors[PROCESS_LOW_PRIORITY];
|
||||
snprintf(buffer, n, "id ");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue