summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-05-18 12:31:27 +0100
committerAlastair Poole <netstar@gmail.com>2020-05-18 12:31:27 +0100
commited6948061939a2bd19f7d3e6d11de5deb895849d (patch)
tree37b7a41c1c6537083b640c80701cb26daadd0cba
parent914f97e086b0b9a92dcd0ef4405589f41a1fa481 (diff)
ui: ffs
-rw-r--r--src/bin/ui/ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/ui/ui.c b/src/bin/ui/ui.c
index 7a3d454..cd20d19 100644
--- a/src/bin/ui/ui.c
+++ b/src/bin/ui/ui.c
@@ -115,10 +115,10 @@ _sort_by_size(const void *p1, const void *p2)
115 size1 = inf1->mem_size; 115 size1 = inf1->mem_size;
116 size2 = inf2->mem_size; 116 size2 = inf2->mem_size;
117 117
118 if (size1 > size2)
119 return 1;
118 if (size1 < size2) 120 if (size1 < size2)
119 return -1; 121 return -1;
120 if (size2 > size1)
121 return 1;
122 122
123 return 0; 123 return 0;
124} 124}
@@ -134,10 +134,10 @@ _sort_by_rss(const void *p1, const void *p2)
134 size1 = inf1->mem_rss; 134 size1 = inf1->mem_rss;
135 size2 = inf2->mem_rss; 135 size2 = inf2->mem_rss;
136 136
137 if (size1 > size2)
138 return 1;
137 if (size1 < size2) 139 if (size1 < size2)
138 return -1; 140 return -1;
139 if (size2 > size1)
140 return 1;
141 141
142 return 0; 142 return 0;
143} 143}