diff --git a/bar.go b/bar.go index b966fb1..b78fa47 100644 --- a/bar.go +++ b/bar.go @@ -246,9 +246,7 @@ } select { case b.operateState <- func(s *bState) { - if n := current - s.current; n > 0 { - s.decoratorEwmaUpdate(n, iterDur) - } + s.decoratorEwmaUpdate(current-s.current, iterDur) s.current = current if s.triggerComplete && s.current >= s.total { s.current = s.total