Fixed TookTime (#66)

This commit is contained in:
Mauro Molin 2022-02-14 17:32:05 +01:00 committed by GitHub
parent a57e93d01e
commit 30265c14ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ func newScript() (*script, error) {
s.registerHook(hookLevelPlumbing, func(error) error { s.registerHook(hookLevelPlumbing, func(error) error {
s.stats.EndTime = time.Now() s.stats.EndTime = time.Now()
s.stats.TookTime = s.stats.EndTime.Sub(s.stats.EndTime) s.stats.TookTime = s.stats.EndTime.Sub(s.stats.StartTime)
return nil return nil
}) })