Skip to content

Commit

Permalink
Adjust progress bar (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnxnguyen authored Feb 6, 2019
1 parent 596b57b commit cb8d2e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ fn main() {
let brute_force = matches.is_present("BRUTEFORCE");

// Configure progress bar
let mut progress = ProgressBar::new(frames as u64);
let mut progress = ProgressBar::new(u64::from(frames));
progress.message("Frame ");
progress.format("▌▌-");
progress.format("|▌▌-|");

// Configure the environment
let mut fields: Vec<Box<dyn Field>> = vec![];
Expand Down Expand Up @@ -54,6 +54,7 @@ fn main() {
}

let (secs, millis) = stop_watch.stop();
println!();
println!("Total: {}.{} seconds.", secs, millis);
}

Expand Down

0 comments on commit cb8d2e2

Please sign in to comment.