diff options
Diffstat (limited to 'src/meter.rs')
-rw-r--r-- | src/meter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meter.rs b/src/meter.rs index 0b091ab1..51e68c34 100644 --- a/src/meter.rs +++ b/src/meter.rs @@ -103,7 +103,7 @@ impl Meter { fn add_sample(&mut self, sample: Duration) { let mut usec = 0f64; - usec += (sample.subsec_nanos() as f64) / 1e3; + usec += f64::from(sample.subsec_nanos()) / 1e3; usec += (sample.as_secs() as f64) * 1e6; let prev = self.times[self.index]; |