summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-08-21 19:59:49 -0700
committerGitHub <noreply@github.com>2020-08-21 22:59:49 -0400
commitc82f4d40b40649ae53037701fadc2f5c1be9e901 (patch)
treedd7e24db33aea9528c6834732479e92a3c12a0e1 /src/lib.rs
parentff15649be77f2e66444cc98e1b1e87a20767eeef (diff)
feature: Support memb (mem bytes) searching in processes
Supports searching by the new mem value.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f199a705..e6b71e9e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -524,8 +524,8 @@ pub fn sort_process_data(
ProcessSorting::Mem => {
to_sort_vec.sort_by(|a, b| {
utils::gen_util::get_ordering(
- a.mem_usage_kb,
- b.mem_usage_kb,
+ a.mem_usage_bytes,
+ b.mem_usage_bytes,
proc_widget_state.process_sorting_reverse,
)
});