Codebase list golang-github-vbauerster-mpb / ce3babc
godoc fix Vladimir Bauer 8 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2929 // Default ETA decorator relies on ewma implementation. However you're free to provide your own implementation
3030 // or use alternative one, which is provided by decor package:
3131 //
32 // decor.MovingAverageETA(decor.ET_STYLE_GO, decor.NewMedianMovingAverage(), sb)
32 // decor.MovingAverageETA(decor.ET_STYLE_GO, decor.NewMedian(), sb)
3333 func MovingAverageETA(style int, average MovingAverage, sb chan time.Time, wcc ...WC) Decorator {
3434 if sb == nil {
3535 panic("start block channel must not be nil")
184184 // Default Speed decorator relies on ewma implementation. However you're free to provide your own implementation
185185 // or use alternative one, which is provided by decor package:
186186 //
187 // decor.MovingAverageSpeed(decor.UnitKiB, "% .2f", decor.NewMedianMovingAverage(), sb)
187 // decor.MovingAverageSpeed(decor.UnitKiB, "% .2f", decor.NewMedian(), sb)
188188 func MovingAverageSpeed(unit int, unitFormat string, average MovingAverage, sb chan time.Time, wcc ...WC) Decorator {
189189 if sb == nil {
190190 panic("start block channel must not be nil")