diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-08-17 12:41:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 15:41:37 -0400 |
commit | 3c373d7129f953242bca813a62b6e920d25f65f5 (patch) | |
tree | e474b558f0e0ab22e121e12d1788113a589e6ad8 /src/canvas.rs | |
parent | 59ce90f5779f63b8d21af92279189c2691a7b7d1 (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/canvas.rs')
-rw-r--r-- | src/canvas.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/canvas.rs b/src/canvas.rs index 563651b8..cee569bc 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -42,8 +42,10 @@ pub struct DisplayableData { pub process_data: Vec<ConvertedProcessData>, // What's actually displayed pub finalized_process_data_map: HashMap<u64, Vec<ConvertedProcessData>>, - pub mem_label: String, - pub swap_label: String, + pub mem_label_percent: String, + pub swap_label_percent: String, + pub mem_label_frac: String, + pub swap_label_frac: String, pub mem_data: Vec<(f64, f64)>, pub swap_data: Vec<(f64, f64)>, pub cpu_data: Vec<ConvertedCpuData>, |