Skip to content

Commit

Permalink
Fix elapsed time computation.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed Oct 22, 2024
1 parent 9db6a1b commit 0588ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ async fn get_control_computation_status() -> BackendResponse {
if let Some(computation) = &*cmp {
let elapsed = computation
.finished_timestamp
.unwrap() // Should be present if results are computed.
.unwrap_or_else(|| SystemTime::now())
.duration_since(computation.timestamp)
.unwrap();
let elapsed = u64::try_from(elapsed.as_millis()).unwrap_or(u64::MAX);
Expand Down

0 comments on commit 0588ce1

Please sign in to comment.