From e9ecbd05bc7230f32d87e0622bc6b0ac5632fd9f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 5 Jul 2017 15:18:02 -0300 Subject: [PATCH] Use class value only to display idle I/O priority. As suggested by @wolfgang42. Fixes #100. --- linux/LinuxProcess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {