readme update
Vladimir Bauer
8 years ago
| 47 | 47 | // replace ETA decorator with "done" message, OnComplete event |
| 48 | 48 | decor.OnComplete( |
| 49 | 49 | // ETA decorator with ewma age of 60, and width reservation of 4 |
| 50 | decor.ETA(decor.ET_STYLE_GO, 60, sbEta, decor.WC{W: 4}), "done", | |
| 50 | decor.EwmaETA(decor.ET_STYLE_GO, 60, sbEta, decor.WC{W: 4}), "done", | |
| 51 | 51 | ), |
| 52 | 52 | ), |
| 53 | 53 | mpb.AppendDecorators(decor.Percentage()), |
| 86 | 86 | // replace ETA decorator with "done" message, OnComplete event |
| 87 | 87 | decor.OnComplete( |
| 88 | 88 | // ETA decorator with ewma age of 60 |
| 89 | decor.ETA(decor.ET_STYLE_GO, 60, sbEta), "done", | |
| 89 | decor.EwmaETA(decor.ET_STYLE_GO, 60, sbEta), "done", | |
| 90 | 90 | ), |
| 91 | 91 | ), |
| 92 | 92 | ) |