Skip to content

Commit

Permalink
DLPX-81400 zcache hits crash due to time going backwards (openzfs#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens authored Jun 1, 2022
1 parent c3bfe81 commit ee3f6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zfs_object_agent/zcache/src/hits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl HitsBySize {
humantime::format_duration(Duration::from_secs(
(self.end_time - self.start_time)
.to_std()
.unwrap()
.unwrap_or_default()
.as_secs()
)),
);
Expand Down

0 comments on commit ee3f6e1

Please sign in to comment.