Skip to content

Commit

Permalink
Padding for percentages
Browse files Browse the repository at this point in the history
  • Loading branch information
tuommaki committed Oct 20, 2023
1 parent b13ca4b commit 688fea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/l1_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl L1Metrics {
let total = last_l1_block - first_l1_block;
let cur = self.latest_l1_block_nbr - first_l1_block;
let perc = (cur * 100) / total;
format!("{perc}%")
format!("{perc:>2}%")
}
None => "∞".to_string(),
};
Expand Down

0 comments on commit 688fea1

Please sign in to comment.