Fix time unit scale factor
This commit is contained in:
parent
badfae12e7
commit
f9ea13d163
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue