mirror of https://github.com/daffainfo/nuclei.git
converts duration to seconds
parent
7dcbc23693
commit
1ad383338c
|
@ -28,8 +28,8 @@ func httpToMap(resp *http.Response, body, headers string, duration time.Duration
|
|||
m["raw"] = string(r)
|
||||
}
|
||||
|
||||
// should be used as int64 within DSL syntax
|
||||
m["duration"] = int64(duration)
|
||||
// Converts duration to seconds (floating point) for DSL syntax
|
||||
m["duration"] = duration.Seconds()
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue