From fcc27f67703d3851f827291d0d5d1d322bbab942 Mon Sep 17 00:00:00 2001 From: epi Date: Sat, 24 Oct 2020 12:32:51 -0500 Subject: [PATCH] fixed progress bar being incremented too little --- src/scanner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.rs b/src/scanner.rs index f999bb7..0d388c1 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -599,7 +599,7 @@ pub async fn scan_url( .for_each_concurrent(CONFIGURATION.threads, |(resp, bar)| async move { match resp.await { Ok(_) => { - bar.inc(1); + bar.inc((CONFIGURATION.extensions.len() + 1) as u64); } Err(e) => { log::error!("error awaiting a response: {}", e);