Codebase list golang-github-vbauerster-mpb / 81bf7b8
fix refill Vladimir Bauer 6 years ago
1 changed file(s) with 1 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
350350 s.total = tc.total
351351 s.current = tc.current
352352 s.trimSpace = tc.trim
353 if tc.refill > 0 {
354 if f, ok := s.filler.(interface{ SetRefill(int64) }); ok {
355 f.SetRefill(tc.refill)
356 }
357 }
353 s.refill = tc.refill
358354 tmpBuf.Reset()
359355 tmpBuf.ReadFrom(s.draw(newStatistics(tw, s)))
360356 by := tmpBuf.Bytes()