mirror of
https://github.com/epi052/feroxbuster
synced 2024-07-08 19:45:45 +00:00
fixed divide by zero error
This commit is contained in:
parent
04a43a0892
commit
1e0ec5c833
|
@ -222,7 +222,7 @@ impl ScanHandler {
|
|||
let current_expectation = self.handles.expected_num_requests_per_dir() as u64;
|
||||
|
||||
// used in the calculation of bar width down below, see explanation there
|
||||
let divisor = self.handles.expected_num_requests_multiplier() as u64 - 1;
|
||||
let divisor = (self.handles.expected_num_requests_multiplier() as u64 - 1).max(1);
|
||||
|
||||
// add another `wordlist.len` to the expected per scan tracker in the statistics handler
|
||||
self.handles
|
||||
|
|
Loading…
Reference in New Issue
Block a user