Skip to content

Commit 21c5aa9

Browse files
committed
attempt to fix duration parsing
1 parent 2858179 commit 21c5aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trace/server_timing/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn parse_entry(s: &str) -> crate::Result<Metric> {
6565
let millis: f64 = value.parse().map_err(|_| {
6666
format_err!("Server timing duration params must be a valid double-precision floating-point number.")
6767
})?;
68-
dur = Some(Duration::from_secs_f64(millis / 1000.0));
68+
dur = Some(Duration::from_secs_f64(millis) / 1000);
6969
}
7070
"desc" => {
7171
// Ensure quotes line up, and strip them from the resulting output

0 commit comments

Comments
 (0)