mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-12-01 04:08:53 +03:00
Merge pull request #1870 from projectdiscovery/fix_stat_calc
fix stat calc
This commit is contained in:
commit
35a99618bf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user