Fix time unit scale factor

This commit is contained in:
Olivier 'reivilibre' 2022-01-08 16:52:42 +00:00
parent badfae12e7
commit f9ea13d163
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ impl<R: Read + Seek> MetricsLogReaderManager<R> {
points: vec![], points: vec![],
y_axis: 0.0..=0.0, 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]; let mut last_val = data.points[0];
for next_val in data.points[1..].iter() { for next_val in data.points[1..].iter() {