Codebase list golang-github-vbauerster-mpb / b1de7fb
do nothing on incr <= 0 Vladimir Bauer 9 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
209209 for {
210210 select {
211211 case i := <-b.incrCh:
212 if i <= 0 {
213 break
214 }
212215 n := state.current + i
213216 if n > total {
214217 state.current = total