Use class value only to display idle I/O priority.

As suggested by @wolfgang42. Fixes #100.
This commit is contained in:
Hisham Muhammad 2017-07-05 15:18:02 -03:00
parent 89d15399c5
commit e9ecbd05bc

View File

@ -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 {