Update outdated comment

dev
Manuel Bua 2020-07-25 23:22:09 +02:00
parent a9560336f4
commit b33a2b6d16
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func (r *Runner) RunEnumeration() {
p := r.progress p := r.progress
templateCount := len(allTemplates) templateCount := len(allTemplates)
// precompute total request count if we are executing more than one template // precompute total request count
var totalRequests int64 = 0 var totalRequests int64 = 0
barIndex := 0 barIndex := 0
parsedTemplates := []string{} parsedTemplates := []string{}
@ -256,6 +256,7 @@ func (r *Runner) RunEnumeration() {
barIndex++ barIndex++
template := t.(*templates.Template) template := t.(*templates.Template)
totalRequests += template.GetHTTPRequestsCount() totalRequests += template.GetHTTPRequestsCount()
// track per-template progress
p.SetupTemplateProgressbar(template.ID, r.inputCount*template.GetHTTPRequestsCount(), barIndex) p.SetupTemplateProgressbar(template.ID, r.inputCount*template.GetHTTPRequestsCount(), barIndex)
parsedTemplates = append(parsedTemplates, match) parsedTemplates = append(parsedTemplates, match)
default: default: