Skip to content

Commit

Permalink
Fix jaeger duration parse error (#5518)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwoo authored Oct 23, 2024
1 parent b045483 commit f0ff912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-serve/src/jaeger_api/parse_duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ pub(crate) fn parse_duration_with_units(duration_string: String) -> anyhow::Resu
}

pub(crate) fn to_well_known_timestamp(timestamp_nanos: i64) -> ProstTimestamp {
let seconds = timestamp_nanos / 1_000_000;
let nanos = (timestamp_nanos % 1_000_000) as i32;
let seconds = timestamp_nanos / 1_000_000_000;
let nanos = (timestamp_nanos % 1_000_000_000) as i32;
ProstTimestamp { seconds, nanos }
}

Expand Down

0 comments on commit f0ff912

Please sign in to comment.