From a37e1e030434d93557ca8a6a77b4cf9d31cc21ff Mon Sep 17 00:00:00 2001 From: Naveen Mahalingam Date: Mon, 10 Dec 2018 08:58:37 -0800 Subject: [PATCH] progress: Tracker.SetValue doesnt reset start time (#74) --- progress/tracker.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/progress/tracker.go b/progress/tracker.go index 7b6f9b6..ee58c99 100644 --- a/progress/tracker.go +++ b/progress/tracker.go @@ -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) }