Codebase list golang-github-vbauerster-mpb / 9a61089
don't check ewma n same reason as in 4ed749d93cec77d5b9b1b8ee37ff3ae8f611f3e2 Vladimir Bauer 2 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
245245 }
246246 select {
247247 case b.operateState <- func(s *bState) {
248 if n := current - s.current; n > 0 {
249 s.decoratorEwmaUpdate(n, iterDur)
250 }
248 s.decoratorEwmaUpdate(current-s.current, iterDur)
251249 s.current = current
252250 if s.triggerComplete && s.current >= s.total {
253251 s.current = s.total