Codebase list golang-github-vbauerster-mpb / c3dfcb3
set toComplete inside SetTotal Vladimir Bauer 8 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
230230 s.total = total
231231 }
232232 s.dynamic = !final
233 s.toComplete = final
233234 }:
234235 case <-b.done:
235236 }
243244 now := time.Now()
244245 select {
245246 case b.operateState <- func(s *bState) {
246 if s.toComplete {
247 return
248 }
249247 if s.current == 0 {
250248 s.startTime = now
251249 s.blockStartTime = now