set BarPriority isn't necessary
Vladimir Bauer
6 years ago
| 48 | 48 |
max := 3000 * time.Millisecond
|
| 49 | 49 |
for i := 0; i < 10; i++ {
|
| 50 | 50 |
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)
|
| 52 | 52 |
time.Sleep(time.Duration(rng.Intn(10)+1) * max / 10)
|
| 53 | 53 |
}
|
| 54 | 54 |
}()
|