summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-09-01 15:17:23 +1000
committerNathan Scott <nathans@redhat.com>2020-09-01 15:17:23 +1000
commit809e4db67222cea20ba88e2f0e309ed77350ba34 (patch)
treecae673939ecc6de9a1ed93b797d878f18961c8e5
parente1e60f38dc871a99d3fa71f3fabd6a3ddeb32ca9 (diff)
parente7f6d1ce5fa5b10c856f4e4b2e0c062d3b6f7b74 (diff)
Merge branch 'oom2' of https://github.com/cgzones/htop into cgzones-oom2
-rw-r--r--linux/LinuxProcess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index 6bae9886..5970c938 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -492,7 +492,7 @@ long LinuxProcess_compare(const void* v1, const void* v2) {
return strcmp(p1->cgroup ? p1->cgroup : "", p2->cgroup ? p2->cgroup : "");
#endif
case OOM:
- return ((long)p2->oom - (long)p1->oom);
+ return ((int)p2->oom - (int)p1->oom);
#ifdef HAVE_DELAYACCT
case PERCENT_CPU_DELAY:
return (p2->cpu_delay_percent > p1->cpu_delay_percent ? 1 : -1);

© 2014-2024 Faster IT GmbH | imprint | privacy policy