diff --git a/src/app/cpu_graph.rs b/src/app/cpu_graph.rs index 6b901ca..42a4a22 100644 --- a/src/app/cpu_graph.rs +++ b/src/app/cpu_graph.rs @@ -37,7 +37,7 @@ impl canvas::Program for CpuGraph { for (index, value) in self.timeline.iter().enumerate() { let x = index as f32 / self.timeline.len() as f32 * bounds.width; let y = bounds.height - value / 100. * bounds.height; - builder.line_to(Point { x, y }) + builder.line_to(Point::new(x, y)) } }), canvas::Stroke::default().with_color(CYAN),