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
5a5a7c8d
Commit
5a5a7c8d
authored
Sep 06, 2016
by
Hisham Muhammad
Committed by
GitHub
Sep 06, 2016
Browse files
Merge pull request #555 from ivan/master
Fix column misalignment for priority -101 threads
parents
6d4df3d1
07086fcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Process.c
View file @
5a5a7c8d
...
@@ -429,7 +429,7 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) {
...
@@ -429,7 +429,7 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) {
case
PID
:
snprintf
(
buffer
,
n
,
Process_pidFormat
,
this
->
pid
);
break
;
case
PID
:
snprintf
(
buffer
,
n
,
Process_pidFormat
,
this
->
pid
);
break
;
case
PPID
:
snprintf
(
buffer
,
n
,
Process_pidFormat
,
this
->
ppid
);
break
;
case
PPID
:
snprintf
(
buffer
,
n
,
Process_pidFormat
,
this
->
ppid
);
break
;
case
PRIORITY
:
{
case
PRIORITY
:
{
if
(
this
->
priority
=
=
-
100
)
if
(
this
->
priority
<
=
-
100
)
snprintf
(
buffer
,
n
,
" RT "
);
snprintf
(
buffer
,
n
,
" RT "
);
else
else
snprintf
(
buffer
,
n
,
"%3ld "
,
this
->
priority
);
snprintf
(
buffer
,
n
,
"%3ld "
,
this
->
priority
);
...
...
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