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
e77a16f4
Commit
e77a16f4
authored
Aug 24, 2018
by
Hisham Muhammad
Browse files
Linux: proper sorting of CMAJFILT and CMINFILT
parent
a4985354
Changes
1
Show whitespace changes
Inline
Side-by-side
linux/LinuxProcess.c
View file @
e77a16f4
...
...
@@ -525,6 +525,10 @@ long LinuxProcess_compare(const void* v1, const void* v2) {
}
long
long
diff
;
switch
((
int
)
settings
->
ss
->
sortKey
)
{
case
CMAJFLT
:
return
(
p2
->
cmajflt
-
p1
->
cmajflt
);
case
CMINFLT
:
return
(
p2
->
cminflt
-
p1
->
cminflt
);
case
M_DRS
:
return
(
p2
->
m_drs
-
p1
->
m_drs
);
case
M_DT
:
...
...
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