godoc fix
Vladimir Bauer
8 years ago
| 29 | 29 |
// Default ETA decorator relies on ewma implementation. However you're free to provide your own implementation
|
| 30 | 30 |
// or use alternative one, which is provided by decor package:
|
| 31 | 31 |
//
|
| 32 | |
// decor.MovingAverageETA(decor.ET_STYLE_GO, decor.NewMedianMovingAverage(), sb)
|
|
32 |
// decor.MovingAverageETA(decor.ET_STYLE_GO, decor.NewMedian(), sb)
|
| 33 | 33 |
func MovingAverageETA(style int, average MovingAverage, sb chan time.Time, wcc ...WC) Decorator {
|
| 34 | 34 |
if sb == nil {
|
| 35 | 35 |
panic("start block channel must not be nil")
|
| 184 | 184 |
// Default Speed decorator relies on ewma implementation. However you're free to provide your own implementation
|
| 185 | 185 |
// or use alternative one, which is provided by decor package:
|
| 186 | 186 |
//
|
| 187 | |
// decor.MovingAverageSpeed(decor.UnitKiB, "% .2f", decor.NewMedianMovingAverage(), sb)
|
|
187 |
// decor.MovingAverageSpeed(decor.UnitKiB, "% .2f", decor.NewMedian(), sb)
|
| 188 | 188 |
func MovingAverageSpeed(unit int, unitFormat string, average MovingAverage, sb chan time.Time, wcc ...WC) Decorator {
|
| 189 | 189 |
if sb == nil {
|
| 190 | 190 |
panic("start block channel must not be nil")
|