docs: changelog

This commit is contained in:
Jack Wills
2023-01-29 02:12:02 +00:00
parent c0bb5355d6
commit d7a8639d8b
4 changed files with 4 additions and 2 deletions
+1
View File
@@ -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);