fix: do not go below 0 for execution time

This commit is contained in:
Jan De Dobbeleer 2020-12-12 12:54:25 +01:00 committed by Jan De Dobbeleer
parent 552fda014b
commit 78b7270b4c

View file

@ -202,6 +202,9 @@ func (env *environment) lastErrorCode() int {
}
func (env *environment) executionTime() float64 {
if *env.args.ExecutionTime < 0 {
return 0
}
return *env.args.ExecutionTime
}