diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-07-05 15:18:02 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-07-05 15:18:02 -0300 |
commit | e9ecbd05bc7230f32d87e0622bc6b0ac5632fd9f (patch) | |
tree | 0744bbb7f85381ccec54339ad11c12c659f3ca44 | |
parent | 89d15399c543b9a5bc0ea3503b55fbec1b54a0fd (diff) |
Use class value only to display idle I/O priority.
As suggested by @wolfgang42. Fixes #100.
-rw-r--r-- | linux/LinuxProcess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 690e91bf..afb3a7fb 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -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 { |