From e77a16f4ae473441ea922baeb6a98de165677442 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 24 Aug 2018 22:45:36 -0300 Subject: [PATCH] Linux: proper sorting of CMAJFILT and CMINFILT --- linux/LinuxProcess.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index efb8b96a..7fa67a90 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -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: