Skip to content

Commit

Permalink
Merge pull request #1870 from projectdiscovery/fix_stat_calc
Browse files Browse the repository at this point in the history
fix stat calc
  • Loading branch information
Mzack9999 committed Aug 12, 2024
2 parents f07cf4c + 371e62c commit 35a9961
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ func (r *Runner) prepareInput() {
numHosts += numTargetsStdin
}

// Adjust total hosts based on the number of paths
if len(r.options.requestURIs) > 0 {
numHosts *= len(r.options.requestURIs)
}

if r.options.ShowStatistics {
r.stats.AddStatic("totalHosts", numHosts)
r.stats.AddCounter("hosts", 0)
Expand Down

0 comments on commit 35a9961

Please sign in to comment.