aquatic_bench: fix progress bar min width for request type info

This commit is contained in:
Joakim Frostegård 2020-04-19 10:38:59 +02:00
parent 7ba61ee6b7
commit 88feb49c3d

View file

@ -7,7 +7,7 @@ pub const NUM_INFO_HASHES: usize = 10_000;
pub fn create_progress_bar(name: &str, iterations: u64) -> ProgressBar {
let t = format!("{:<16} {}", name, "{wide_bar} {pos:>2}/{len:>2}");
let t = format!("{:<8} {}", name, "{wide_bar} {pos:>2}/{len:>2}");
let style = ProgressStyle::default_bar().template(&t);
ProgressBar::new(iterations).with_style(style)