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
0507cd38
Commit
0507cd38
authored
Aug 20, 2015
by
Hisham Muhammad
Browse files
Merge pull request #43 from ErkiDerLoony/master
Fix tree view if userland threads are hidden.
parents
544c7efa
c8be3701
Changes
1
Show whitespace changes
Inline
Side-by-side
ProcessList.c
View file @
0507cd38
...
@@ -164,7 +164,7 @@ static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int i
...
@@ -164,7 +164,7 @@ static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int i
for
(
int
i
=
Vector_size
(
this
->
processes
)
-
1
;
i
>=
0
;
i
--
)
{
for
(
int
i
=
Vector_size
(
this
->
processes
)
-
1
;
i
>=
0
;
i
--
)
{
Process
*
process
=
(
Process
*
)
(
Vector_get
(
this
->
processes
,
i
));
Process
*
process
=
(
Process
*
)
(
Vector_get
(
this
->
processes
,
i
));
if
(
process
->
tgid
==
pid
||
(
process
->
tgid
==
process
->
pid
&&
process
->
ppid
==
pid
))
{
if
(
process
->
show
&&
(
process
->
tgid
==
pid
||
(
process
->
tgid
==
process
->
pid
&&
process
->
ppid
==
pid
))
)
{
process
=
(
Process
*
)
(
Vector_take
(
this
->
processes
,
i
));
process
=
(
Process
*
)
(
Vector_take
(
this
->
processes
,
i
));
Vector_add
(
children
,
process
);
Vector_add
(
children
,
process
);
}
}
...
...
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