diff --git a/src/lib.rs b/src/lib.rs index 0648c7a65..9b404bda0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,6 +10,7 @@ pub(crate) mod app; mod utils { pub(crate) mod cancellation_token; + pub(crate) mod conversion; pub(crate) mod data_units; pub(crate) mod general; pub(crate) mod logging; @@ -18,7 +19,6 @@ mod utils { pub(crate) mod canvas; pub(crate) mod collection; pub(crate) mod constants; -pub(crate) mod data_conversion; pub(crate) mod event; pub mod options; pub mod widgets; @@ -45,11 +45,11 @@ use crossterm::{ execute, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, }; -use data_conversion::*; use event::{handle_key_event_or_break, handle_mouse_event, BottomEvent, CollectionThreadEvent}; use options::{args, get_or_create_config, init_app}; use tui::{backend::CrosstermBackend, Terminal}; use utils::cancellation_token::CancellationToken; +use utils::conversion::*; #[allow(unused_imports, reason = "this is needed if logging is enabled")] use utils::logging::*; diff --git a/src/data_conversion.rs b/src/utils/conversion.rs similarity index 100% rename from src/data_conversion.rs rename to src/utils/conversion.rs diff --git a/src/widgets/process_table/process_data.rs b/src/widgets/process_table/process_data.rs index c38fa67d8..90ce8ea6b 100644 --- a/src/widgets/process_table/process_data.rs +++ b/src/widgets/process_table/process_data.rs @@ -16,7 +16,7 @@ use crate::{ Painter, }, collection::processes::{Pid, ProcessHarvest}, - data_conversion::dec_bytes_per_second_string, + dec_bytes_per_second_string, utils::data_units::{get_binary_bytes, get_decimal_bytes, GIBI_LIMIT, GIGA_LIMIT}, };