Skip to content

Commit

Permalink
feat(primitives): format stage progress with two decimal places (#5324)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored and mattsse committed Nov 8, 2023
1 parent 9d9be0b commit 5530b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/primitives/src/stage/checkpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ pub struct EntitiesCheckpoint {

impl Display for EntitiesCheckpoint {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:.1}%", 100.0 * self.processed as f64 / self.total as f64)
write!(f, "{:.2}%", 100.0 * self.processed as f64 / self.total as f64)
}
}

Expand Down

0 comments on commit 5530b7b

Please sign in to comment.