Skip to content

Commit

Permalink
fix: set progress to 100% when test finished (to avoid calculation di…
Browse files Browse the repository at this point in the history
…fferences)
  • Loading branch information
szkiba committed Feb 2, 2024
1 parent 950177a commit f6d09eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/digest/digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ func (d *Digest) TimePassed() time.Duration {

// ProgressPercent return percent value of elapsed time.
func (d *Digest) ProgressPercent() float64 {
if d.State == StateFinished {
return 100
}

total := d.Duration()
left := d.TimeLeft()

Expand Down

0 comments on commit f6d09eb

Please sign in to comment.