mirror of https://github.com/http-rs/http-types
Merge pull request #393 from http-rs/fix-duration-parsing
attempt to fix duration parsing
This commit is contained in:
commit
4ea8ff1c34
|
@ -65,7 +65,7 @@ fn parse_entry(s: &str) -> crate::Result<Metric> {
|
|||
let millis: f64 = value.parse().map_err(|_| {
|
||||
format_err!("Server timing duration params must be a valid double-precision floating-point number.")
|
||||
})?;
|
||||
dur = Some(Duration::from_secs_f64(millis / 1000.0));
|
||||
dur = Some(Duration::from_secs_f64(millis) / 1000);
|
||||
}
|
||||
"desc" => {
|
||||
// Ensure quotes line up, and strip them from the resulting output
|
||||
|
|
Loading…
Reference in New Issue