From 1e88c1cca83a89d643ddf2ed30b3ecfb505ec48f Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 3 Jan 2025 17:50:06 +0100 Subject: [PATCH] Main: Add percent to progress bar --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5c8b8f0..d8c4e11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,7 +72,7 @@ fn run() -> Result<()> { let progress_bar = ProgressBar::new(hashed_files.len() as u64) .with_finish(ProgressFinish::AndLeave) .with_style(ProgressStyle::default_bar() - .template("Hashing files... {bar} {pos:>7}/{len:7} [{elapsed_precise}]").unwrap()); + .template("Hashing files... {bar} {percent_precise}% {pos:>7}/{len:7} [{elapsed_precise}]").unwrap()); let throughput_spinner = ProgressBar::new_spinner() .with_style(ProgressStyle::default_spinner()