Linux: proper sorting of CMAJFILT and CMINFILT

This commit is contained in:
Hisham Muhammad 2018-08-24 22:45:36 -03:00
parent a49853543e
commit e77a16f4ae
1 changed files with 4 additions and 0 deletions

View File

@ -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: