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
e42d7800
Commit
e42d7800
authored
Aug 12, 2015
by
Hisham Muhammad
Browse files
Merge pull request #230 from maksqwe/cstime_fix
Fix sort by cstime
parents
c33d32e6
1bdee6b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux/LinuxProcess.c
View file @
e42d7800
...
...
@@ -390,7 +390,7 @@ long LinuxProcess_compare(const void* v1, const void* v2) {
case
UTIME
:
diff
=
p2
->
utime
-
p1
->
utime
;
goto
test_diff
;
case
CUTIME
:
diff
=
p2
->
cutime
-
p1
->
cutime
;
goto
test_diff
;
case
STIME
:
diff
=
p2
->
stime
-
p1
->
stime
;
goto
test_diff
;
case
CSTIME
:
diff
=
p2
->
cstime
-
p
2
->
cstime
;
goto
test_diff
;
case
CSTIME
:
diff
=
p2
->
cstime
-
p
1
->
cstime
;
goto
test_diff
;
#ifdef HAVE_TASKSTATS
case
RCHAR
:
diff
=
p2
->
io_rchar
-
p1
->
io_rchar
;
goto
test_diff
;
case
WCHAR
:
diff
=
p2
->
io_wchar
-
p1
->
io_wchar
;
goto
test_diff
;
...
...
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