diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-08-15 17:35:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 20:35:49 -0400 |
commit | f3897f0538f90c682b96bc340c3c05e80be10b2d (patch) | |
tree | f24673d4d5702e48b9d3d1889f7498c97ac238a1 /src/data_conversion.rs | |
parent | 84f63f2f8306382dbf5cab819589161bf0b7c093 (diff) |
feature: Allow sorting by any column
This feature allows any column to be sortable.
This also adds:
- Inverting sort for current column with `I`
- Invoking a sort widget with `s` or `F6`. Close with same key or esc.
And:
- A bugfix in regards the basic menu and battery widget
- A lot of refactoring
Diffstat (limited to 'src/data_conversion.rs')
-rw-r--r-- | src/data_conversion.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data_conversion.rs b/src/data_conversion.rs index 200ac998..7218d305 100644 --- a/src/data_conversion.rs +++ b/src/data_conversion.rs @@ -45,7 +45,7 @@ pub struct ConvertedProcessData { pub wps_f64: f64, pub tr_f64: f64, pub tw_f64: f64, - pub process_states: String, + pub process_state: String, } #[derive(Clone, Default, Debug)] @@ -409,7 +409,7 @@ pub fn convert_process_data( wps_f64: process.write_bytes_per_sec as f64, tr_f64: process.total_read_bytes as f64, tw_f64: process.total_write_bytes as f64, - process_states: process.process_state.to_owned(), + process_state: process.process_state.to_owned(), } }) .collect::<Vec<_>>(), @@ -469,7 +469,7 @@ pub fn convert_process_data( wps_f64: p.write_per_sec as f64, tr_f64: p.total_read as f64, tw_f64: p.total_write as f64, - process_states: p.process_state, + process_state: p.process_state, } }) .collect::<Vec<_>>() |