From 371e62c0582b9abd3273033ce77bebd8e03e51b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Mon, 12 Aug 2024 16:11:09 +0300 Subject: [PATCH] fix stat calc --- runner/runner.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runner/runner.go b/runner/runner.go index 8bf364f6..8eb9b675 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -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)