Merge pull request #1870 from projectdiscovery/fix_stat_calc

fix stat calc
This commit is contained in:
Mzack9999 2024-08-12 21:22:51 +02:00 committed by GitHub
commit 35a99618bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)