Skip to content

Commit

Permalink
progress: Tracker.SetValue doesnt reset start time (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t authored Dec 10, 2018
1 parent f6b258e commit a37e1e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion progress/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ func (t *Tracker) Reset() {
// SetValue sets the value of the tracker and re-calculates if the tracker is
// "done".
func (t *Tracker) SetValue(value int64) {
t.Reset()
t.done = false
t.timeStop = time.Time{}
t.value = 0
t.Increment(value)
}

Expand Down

0 comments on commit a37e1e0

Please sign in to comment.