Skip to content

Commit

Permalink
webpage: app: Fix unwrap for duration difference
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Oct 23, 2024
1 parent 2da2a23 commit eb7ca2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpage/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ impl App {
format_duration(
(self.now - message_stats.last_update_us)
.to_std()
.unwrap(),
.unwrap_or(std::time::Duration::from_secs(0)),
)
.to_string()
+ " Ago",
Expand Down

0 comments on commit eb7ca2b

Please sign in to comment.