Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
e9ecbd05
Commit
e9ecbd05
authored
Jul 05, 2017
by
Hisham Muhammad
Browse files
Use class value only to display idle I/O priority.
As suggested by @wolfgang42. Fixes #100.
parent
89d15399
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux/LinuxProcess.c
View file @
e9ecbd05
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment