Skip to content

Commit f0ff912

Browse files
authored
Fix jaeger duration parse error (#5518)
#5511
1 parent b045483 commit f0ff912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickwit/quickwit-serve/src/jaeger_api/parse_duration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pub(crate) fn parse_duration_with_units(duration_string: String) -> anyhow::Resu
3030
}
3131

3232
pub(crate) fn to_well_known_timestamp(timestamp_nanos: i64) -> ProstTimestamp {
33-
let seconds = timestamp_nanos / 1_000_000;
34-
let nanos = (timestamp_nanos % 1_000_000) as i32;
33+
let seconds = timestamp_nanos / 1_000_000_000;
34+
let nanos = (timestamp_nanos % 1_000_000_000) as i32;
3535
ProstTimestamp { seconds, nanos }
3636
}
3737

0 commit comments

Comments
 (0)