Calculate req/sec correctly when recursing (#168)

This commit is contained in:
Joona Hoikkala 2020-02-17 01:02:00 +02:00 committed by GitHub
parent ff1bc2a3c2
commit a5d9bb5c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- Changed - Changed
- Write POST request data properly to file when ran with `-od` - Write POST request data properly to file when ran with `-od`
- Properly handle relative redirect urls with `-recursion` - Properly handle relative redirect urls with `-recursion`
- Calculate req/sec correctly for when using recursion
- v1.0.1 - v1.0.1
- Changed - Changed

View File

@ -87,7 +87,6 @@ func (j *Job) Start() {
j.Total = j.Input.Total() j.Total = j.Input.Total()
defer j.Stop() defer j.Stop()
j.Running = true j.Running = true
j.startTime = time.Now()
//Show banner if not running in silent mode //Show banner if not running in silent mode
if !j.Config.Quiet { if !j.Config.Quiet {
j.Output.Banner() j.Output.Banner()
@ -101,6 +100,7 @@ func (j *Job) Start() {
j.Output.Info(fmt.Sprintf("Scanning: %s", j.Config.Url)) j.Output.Info(fmt.Sprintf("Scanning: %s", j.Config.Url))
} }
j.Input.Reset() j.Input.Reset()
j.startTime = time.Now()
j.Counter = 0 j.Counter = 0
j.startExecution() j.startExecution()
} }