Skip to content

Commit

Permalink
fix negative durations in update display
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Dixler committed Dec 12, 2022
1 parent d8b2671 commit a66ccea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
@@ -0,0 +1,4 @@
changes:
- type: fix
scope: cli/display
description: Fixes negative durations on update display.
3 changes: 3 additions & 0 deletions pkg/backend/display/progress.go
Expand Up @@ -862,6 +862,9 @@ func (display *ProgressDisplay) processNormalEvent(event engine.Event) {
// and time elapsed.
display.opStopwatch.start[step.URN] = time.Now()

// Clear out potential event end timings for prior operations on the same resource.
delete(display.opStopwatch.end, step.URN)

row.SetStep(step)
} else if event.Type == engine.ResourceOutputsEvent {
isRefresh := display.getStepOp(row.Step()) == deploy.OpRefresh
Expand Down

0 comments on commit a66ccea

Please sign in to comment.