mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-08 17:05:45 +02:00
Update models/actions/run.go
Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
parent
ab98c3ff43
commit
215d80f6b2
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user