Codebase list golang-github-vbauerster-mpb / 127a2fb
set BarPriority isn't necessary Vladimir Bauer 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4848 max := 3000 * time.Millisecond
4949 for i := 0; i < 10; i++ {
5050 filler := makeLogBar(fmt.Sprintf("some log: %d", i))
51 p.Add(0, filler, mpb.BarPriority(-1)).SetTotal(0, true)
51 p.Add(0, filler).SetTotal(0, true)
5252 time.Sleep(time.Duration(rng.Intn(10)+1) * max / 10)
5353 }
5454 }()