diff --git a/src/app_data/container_state.rs b/src/app_data/container_state.rs index 8c5952a..7f9bfdd 100644 --- a/src/app_data/container_state.rs +++ b/src/app_data/container_state.rs @@ -277,7 +277,7 @@ impl Stats for ByteStats { } } -// convert from bytes to kb, mb, gb etc +// convert from bytes to kB, MB, GB etc impl fmt::Display for ByteStats { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let one_kb = 1000.0; diff --git a/src/app_data/mod.rs b/src/app_data/mod.rs index 76b2022..e39a7ec 100644 --- a/src/app_data/mod.rs +++ b/src/app_data/mod.rs @@ -304,7 +304,7 @@ impl AppData { if self.containers.state.selected().is_some() { self.containers.previous(); } - // Check is some, else can cause out of bounds error, if containers get removed before a docker update + // Check is some, else can cause out of bounds error, if containers get removed before a docker update if self.containers.items.get(index).is_some() { self.containers.items.remove(index); } diff --git a/src/ui/draw_blocks.rs b/src/ui/draw_blocks.rs index 27f2302..38d34b2 100644 --- a/src/ui/draw_blocks.rs +++ b/src/ui/draw_blocks.rs @@ -266,7 +266,7 @@ pub fn draw_chart( .constraints([Constraint::Percentage(50), Constraint::Percentage(50)].as_ref()) .split(area); - // Check is some, else can cause out of bounds error, if containers get removed before a docker update + // Check is some, else can cause out of bounds error, if containers get removed before a docker update if let Some(data) = app_data.lock().containers.items.get(index) { let (cpu, mem) = data.get_chart_data();