summaryrefslogtreecommitdiffstats
path: root/src/app/query.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-08-17 12:41:37 -0700
committerGitHub <noreply@github.com>2020-08-17 15:41:37 -0400
commit3c373d7129f953242bca813a62b6e920d25f65f5 (patch)
treee474b558f0e0ab22e121e12d1788113a589e6ad8 /src/app/query.rs
parent59ce90f5779f63b8d21af92279189c2691a7b7d1 (diff)
feature: Add appox. total mem as an option for processes and basic mem
Adds a way to display the memory value as a column in the processes widget and the basic memory widget, rather than just the percentage.
Diffstat (limited to 'src/app/query.rs')
-rw-r--r--src/app/query.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/query.rs b/src/app/query.rs
index 6b3d904d..41d18272 100644
--- a/src/app/query.rs
+++ b/src/app/query.rs
@@ -671,12 +671,12 @@ impl Prefix {
match prefix_type {
PrefixType::Cpu => matches_condition(
&numerical_query.condition,
- process.cpu_usage,
+ process.cpu_percent_usage,
numerical_query.value,
),
PrefixType::Mem => matches_condition(
&numerical_query.condition,
- process.mem_usage,
+ process.mem_percent_usage,
numerical_query.value,
),
PrefixType::Rps => matches_condition(