diff options
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/cpu_graph.rs | 4 | ||||
-rw-r--r-- | src/widgets/disk_table.rs | 2 | ||||
-rw-r--r-- | src/widgets/process_table.rs | 16 | ||||
-rw-r--r-- | src/widgets/process_table/proc_widget_column.rs | 2 | ||||
-rw-r--r-- | src/widgets/process_table/proc_widget_data.rs | 2 | ||||
-rw-r--r-- | src/widgets/process_table/sort_table.rs | 2 | ||||
-rw-r--r-- | src/widgets/temperature_table.rs | 2 |
7 files changed, 14 insertions, 16 deletions
diff --git a/src/widgets/cpu_graph.rs b/src/widgets/cpu_graph.rs index d3a304f0..ff52b617 100644 --- a/src/widgets/cpu_graph.rs +++ b/src/widgets/cpu_graph.rs @@ -15,8 +15,8 @@ use crate::{ }, data_collection::cpu::CpuDataType, data_conversion::CpuWidgetData, - options::CpuDefault, - utils::gen_util::truncate_to_text, + options::config::CpuDefault, + utils::general::truncate_to_text, }; #[derive(Default)] diff --git a/src/widgets/disk_table.rs b/src/widgets/disk_table.rs index 467abd6d..7ac2486e 100644 --- a/src/widgets/disk_table.rs +++ b/src/widgets/disk_table.rs @@ -12,7 +12,7 @@ use crate::{ SortColumn, SortDataTable, SortDataTableProps, SortOrder, SortsRow, }, }, - utils::gen_util::{get_decimal_bytes, sort_partial_fn, truncate_to_text}, + utils::general::{get_decimal_bytes, sort_partial_fn, truncate_to_text}, }; #[derive(Clone, Debug)] diff --git a/src/widgets/process_table.rs b/src/widgets/process_table.rs index 2818ad79..172597ca 100644 --- a/src/widgets/process_table.rs +++ b/src/widgets/process_table.rs @@ -1,9 +1,16 @@ +pub mod proc_widget_column; +pub mod proc_widget_data; +mod sort_table; + use std::{borrow::Cow, collections::BTreeMap}; use hashbrown::{HashMap, HashSet}; use indexmap::IndexSet; use itertools::Itertools; +pub use proc_widget_column::*; +pub use proc_widget_data::*; use serde::{de::Error, Deserialize}; +use sort_table::SortTableColumn; use crate::{ app::{ @@ -22,15 +29,6 @@ use crate::{ Pid, }; -pub mod proc_widget_column; -pub use proc_widget_column::*; - -pub mod proc_widget_data; -pub use proc_widget_data::*; - -mod sort_table; -use sort_table::SortTableColumn; - /// ProcessSearchState only deals with process' search's current settings and state. pub struct ProcessSearchState { pub search_state: AppSearchState, diff --git a/src/widgets/process_table/proc_widget_column.rs b/src/widgets/process_table/proc_widget_column.rs index f9ebf18b..9a0a0b94 100644 --- a/src/widgets/process_table/proc_widget_column.rs +++ b/src/widgets/process_table/proc_widget_column.rs @@ -5,7 +5,7 @@ use serde::{de::Error, Deserialize, Serialize}; use super::ProcWidgetData; use crate::{ canvas::tui_widgets::data_table::{ColumnHeader, SortsRow}, - utils::gen_util::sort_partial_fn, + utils::general::sort_partial_fn, }; #[derive(Debug, PartialEq, Eq, Copy, Clone, Hash)] diff --git a/src/widgets/process_table/proc_widget_data.rs b/src/widgets/process_table/proc_widget_data.rs index 0286a08b..8f71434f 100644 --- a/src/widgets/process_table/proc_widget_data.rs +++ b/src/widgets/process_table/proc_widget_data.rs @@ -15,7 +15,7 @@ use crate::{ }, data_collection::processes::ProcessHarvest, data_conversion::{binary_byte_string, dec_bytes_per_second_string, dec_bytes_string}, - utils::gen_util::truncate_to_text, + utils::general::truncate_to_text, Pid, }; diff --git a/src/widgets/process_table/sort_table.rs b/src/widgets/process_table/sort_table.rs index 53a72b90..da6a08d3 100644 --- a/src/widgets/process_table/sort_table.rs +++ b/src/widgets/process_table/sort_table.rs @@ -4,7 +4,7 @@ use tui::text::Text; use crate::{ canvas::tui_widgets::data_table::{ColumnHeader, DataTableColumn, DataToCell}, - utils::gen_util::truncate_to_text, + utils::general::truncate_to_text, }; pub struct SortTableColumn; diff --git a/src/widgets/temperature_table.rs b/src/widgets/temperature_table.rs index 1446185d..3a8a9db4 100644 --- a/src/widgets/temperature_table.rs +++ b/src/widgets/temperature_table.rs @@ -14,7 +14,7 @@ use crate::{ }, }, data_collection::temperature::TemperatureType, - utils::gen_util::{sort_partial_fn, truncate_to_text}, + utils::general::{sort_partial_fn, truncate_to_text}, }; #[derive(Clone, Debug)] |