mirror of
https://github.com/go-gitea/gitea
synced 2025-07-25 19:58:36 +00:00
Update models/actions/run.go
Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
@@ -90,7 +90,6 @@ func (run *ActionRun) TakeTime() time.Duration {
|
||||
if run.Status.IsDone() {
|
||||
return run.Stopped.AsTime().Sub(started)
|
||||
}
|
||||
run.Stopped.AsTime().Sub(started)
|
||||
return time.Since(started).Truncate(time.Second)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user