Codebase list golang-github-vbauerster-mpb / 52ec2cf
Refill.Till > Refill.till Vladimir Bauer 9 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4747 // Refil is a struct for b.IncrWithReFill
4848 type Refill struct {
4949 Char rune
50 Till int64
50 till int64
5151 }
5252
5353 // Eta returns exponential-weighted-moving-average ETA estimator
323323 s.completed = true
324324 }
325325 s.current = n
326 s.refill = r.refill
326 if r.refill != nil {
327 r.refill.till = n
328 s.refill = r.refill
329 }
327330 incrStartTime = time.Now()
328331 case <-b.flushedCh:
329332 if s.completed {
449452 buf = append(buf, fmtBytes[rLeft]...)
450453
451454 if rf != nil {
452 till := percentage(total, rf.Till, barWidth)
455 till := percentage(total, rf.till, barWidth)
453456 rbytes := make([]byte, utf8.RuneLen(rf.Char))
454457 utf8.EncodeRune(rbytes, rf.Char)
455458 // append refill rune