Skip to content

Commit

Permalink
fix(插件): 修复耗时计算
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Jan 18, 2024
1 parent 2610c01 commit 8548ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (b *Base) Setup() (err error) {
}

func (b *Base) Elapsed() time.Duration {
return b.Value("BUILD_FINISHED").Time().Sub(b.Value("BUILD_STARTED").Time())
return b.Value("BUILD_FINISHED").Time().Sub(b.Value("BUILD_CREATED").Time())
}

func (b *Base) Value(key string) *internal.Value {
Expand Down

0 comments on commit 8548ce8

Please sign in to comment.