converts duration to seconds

dev
Mzack9999 2020-10-01 18:16:24 +02:00
parent 7dcbc23693
commit 1ad383338c
1 changed files with 2 additions and 2 deletions

View File

@ -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
}