feat: calculate duration

This commit is contained in:
Jason Song committed 2023-01-05 16:19:08 +08:00
1 parent c510fdbcf1
commit a4b2cf2426
8 files changed
+82 -39

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ func ViewPost(ctx *context_module.Context) {
for i, v := range steps {
resp.StateData.CurrentJobSteps[i] = ViewJobStep{
Summary: v.Name,
Duration: float64(v.TakeTime() / time.Second),
Duration: float64(v.Duration() / time.Second),
Status: v.Status.String(),
}
}