From f9ea13d163683bdc84a028ee03c77b704bef8a29 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sat, 8 Jan 2022 16:52:42 +0000 Subject: [PATCH] Fix time unit scale factor --- bare-metrics-gui/src/background_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bare-metrics-gui/src/background_loader.rs b/bare-metrics-gui/src/background_loader.rs index 3b0e07b..14a08f8 100644 --- a/bare-metrics-gui/src/background_loader.rs +++ b/bare-metrics-gui/src/background_loader.rs @@ -516,7 +516,7 @@ impl MetricsLogReaderManager { points: vec![], y_axis: 0.0..=0.0, }; - let scale_factor = 1.0 / (time_unit as f64); + let scale_factor = time_unit as f64; let mut last_val = data.points[0]; for next_val in data.points[1..].iter() {