docs: changelog
This commit is contained in:
+1
-1
@@ -530,7 +530,7 @@ impl AppData {
|
||||
.containers
|
||||
.items
|
||||
.iter()
|
||||
.map(|i| i.id.to_owned())
|
||||
.map(|i| i.id.clone())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
// Only sort it no containers currently set, as afterwards the order is fixed
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![warn(clippy::unused_async, clippy::unwrap_used, clippy::expect_used)]
|
||||
// Warning - These are indeed pedantic
|
||||
// #![warn(clippy::pedantic)]
|
||||
#![warn(clippy::pedantic)]
|
||||
#![warn(clippy::nursery)]
|
||||
#![allow(
|
||||
clippy::module_name_repetitions,
|
||||
|
||||
@@ -266,6 +266,7 @@ pub fn chart<B: Backend>(f: &mut Frame<'_, B>, area: Rect, app_data: &Arc<Mutex<
|
||||
.style(Style::default().fg(Color::Cyan))
|
||||
.graph_type(GraphType::Line)
|
||||
.data(&mem.0)];
|
||||
|
||||
let cpu_stats = CpuStats::new(cpu.0.last().map_or(0.00, |f| f.1));
|
||||
let mem_stats = ByteStats::new(mem.0.last().map_or(0, |f| f.1 as u64));
|
||||
let cpu_chart = make_chart(cpu.2, "cpu", cpu_dataset, &cpu_stats, &cpu.1);
|
||||
|
||||
Reference in New Issue
Block a user