Codebase list golang-github-vbauerster-mpb / d01ab46
spaces to tabs Vladimir Bauer 8 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
7979 mpb.PrependDecorators(
8080 decor.StaticName(name, 0, 0),
8181 // DSyncSpace is shortcut for DwidthSync|DextraSpace
82 // DwidthSync bit enables same column width synchronization
83 // DextraSpace bit prepends decorator's output with exactly one space
82 // DwidthSync bit enables same column width synchronization
83 // DextraSpace bit prepends decorator's output with exactly one space
8484 decor.Percentage(3, decor.DSyncSpace),
8585 ),
8686 mpb.AppendDecorators(
9191 defer wg.Done()
9292 max := 100 * time.Millisecond
9393 for i := 0; i < total; i++ {
94 time.Sleep(time.Duration(rand.Intn(10)+1) * max / 10)
94 time.Sleep(time.Duration(rand.Intn(10)+1) * max / 10)
9595 bar.Increment()
9696 }
9797 }()