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 f2814fa
Showing 1 changed file with 3 additions and 0 deletions.
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 f2814fa

Please sign in to comment.