Codebase list golang-github-vbauerster-mpb / 08e821e
complete bar on EOF Vladimir Bauer 6 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1717 pr.bar.IncrBy(n, time.Since(pr.iT))
1818 pr.iT = time.Now()
1919 }
20 if err == io.EOF {
21 current := pr.bar.Current()
22 pr.bar.SetTotal(current, true)
23 }
2024 return
2125 }