Skip to content

Commit 72f421d

Browse files
yoshuawuytsarlyon
authored andcommitted
Backport fix from main instead
1 parent 18278ff commit 72f421d

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_micros((millis * 1000.0).round() as u64));
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)