Skip to content

Commit

Permalink
calculating the latency fails (hardware issue)?
Browse files Browse the repository at this point in the history
  • Loading branch information
timglabisch committed Aug 17, 2023
1 parent a4b6727 commit 18e2e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mehsh_check/src/udp_echo/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl AnalyzerStatsEntry {
match self.resp_time {
Some(resp) => Some(
resp.duration_since(self.req_time)
.expect("could not calculate duration")
.unwrap_or(Duration::from_micros(0))
.as_micros(),
),
_ => None,
Expand Down

0 comments on commit 18e2e89

Please sign in to comment.