Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
b9934ffa
Commit
b9934ffa
authored
7 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
minor style tweak
parent
65ec0bd6
master
lua
next
perfcounters
pkgconfig-on-linux
solaris
3.0.0beta5
3.0.0beta4
3.0.0beta3
3.0.0beta2
3.0.0beta1
2.2.0
2.1.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessList.c
+4
-3
ProcessList.c
with
4 additions
and
3 deletions
+4
-3
ProcessList.c
View file @
b9934ffa
...
...
@@ -234,12 +234,13 @@ void ProcessList_sort(ProcessList* this) {
while
(
l
<
r
)
{
int
c
=
(
l
+
r
)
/
2
;
pid_t
pid
=
((
Process
*
)(
Vector_get
(
this
->
processes
,
c
)))
->
pid
;
if
(
ppid
==
pid
)
if
(
ppid
==
pid
)
{
break
;
else
if
(
ppid
<
pid
)
}
else
if
(
ppid
<
pid
)
{
r
=
c
;
else
}
else
{
l
=
c
+
1
;
}
}
// If parent not found, then construct the tree with this root
if
(
l
>=
r
)
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help