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
8d0fff2f
"vscode:/vscode.git/clone" did not exist on "81bb8040e3b8b4d84242071546e45917c168263a"
Commit
8d0fff2f
authored
Mar 29, 2010
by
Hisham Muhammad
Browse files
Good heuristic for processes started in the same second
parent
dc262f4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Process.c
View file @
8d0fff2f
...
@@ -581,8 +581,12 @@ int Process_compare(const void* v1, const void* v2) {
...
@@ -581,8 +581,12 @@ int Process_compare(const void* v1, const void* v2) {
return
strcmp
(
p1
->
comm
,
p2
->
comm
);
return
strcmp
(
p1
->
comm
,
p2
->
comm
);
case
NLWP
:
case
NLWP
:
return
(
p1
->
nlwp
-
p2
->
nlwp
);
return
(
p1
->
nlwp
-
p2
->
nlwp
);
case
STARTTIME
:
case
STARTTIME
:
{
if
(
p1
->
starttime_ctime
==
p2
->
starttime_ctime
)
return
(
p1
->
pid
-
p2
->
pid
);
else
return
(
p1
->
starttime_ctime
-
p2
->
starttime_ctime
);
return
(
p1
->
starttime_ctime
-
p2
->
starttime_ctime
);
}
#ifdef HAVE_OPENVZ
#ifdef HAVE_OPENVZ
case
CTID
:
case
CTID
:
return
(
p1
->
ctid
-
p2
->
ctid
);
return
(
p1
->
ctid
-
p2
->
ctid
);
...
...
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