Codebase list golang-github-vbauerster-mpb / 6355617
use stat.Completed in BarFiller Vladimir Bauer 3 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
172172 var refWidth int
173173 curWidth := int(internal.PercentageRound(stat.Total, stat.Current, uint(width)))
174174
175 if stat.Current >= stat.Total {
175 if stat.Completed {
176176 tip = s.tip.onComplete
177177 } else {
178178 tip = s.tip.frames[s.tip.count%uint(len(s.tip.frames))]
772772 s.current = tc.current
773773 s.trimSpace = tc.trim
774774 s.refill = tc.refill
775 s.completed = tc.total > 0 && tc.current >= tc.total
775776 tmpBuf.Reset()
776777 r, err := s.draw(newStatistics(tw, s))
777778 if err != nil {
12261227 s.current = tc.current
12271228 s.trimSpace = tc.trim
12281229 s.refill = tc.refill
1230 s.completed = tc.total > 0 && tc.current >= tc.total
12291231 tmpBuf.Reset()
12301232 r, err := s.draw(newStatistics(tw, s))
12311233 if err != nil {
14021404 s.current = tc.current
14031405 s.trimSpace = tc.trim
14041406 s.refill = tc.refill
1407 s.completed = tc.total > 0 && tc.current >= tc.total
14051408 tmpBuf.Reset()
14061409 r, err := s.draw(newStatistics(tw, s))
14071410 if err != nil {