spaces to tabs
Vladimir Bauer
8 years ago
| 79 | 79 | mpb.PrependDecorators( |
| 80 | 80 | decor.StaticName(name, 0, 0), |
| 81 | 81 | // 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 | |
| 84 | 84 | decor.Percentage(3, decor.DSyncSpace), |
| 85 | 85 | ), |
| 86 | 86 | mpb.AppendDecorators( |
| 91 | 91 | defer wg.Done() |
| 92 | 92 | max := 100 * time.Millisecond |
| 93 | 93 | 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) | |
| 95 | 95 | bar.Increment() |
| 96 | 96 | } |
| 97 | 97 | }() |