misspell fix
Vladimir Bauer
8 years ago
| 150 | 150 |
return Counters(UnitKB, pairFormat, wcc...)
|
| 151 | 151 |
}
|
| 152 | 152 |
|
| 153 | |
// Counters decorator with dynamic unit measure adjustement
|
|
153 |
// Counters decorator with dynamic unit measure adjustment.
|
| 154 | 154 |
//
|
| 155 | 155 |
// `unit` one of [0|UnitKiB|UnitKB] zero for no unit
|
| 156 | 156 |
//
|
| 118 | 118 |
}
|
| 119 | 119 |
|
| 120 | 120 |
// EwmaSpeed exponential-weighted-moving-average based speed decorator,
|
| 121 | |
// with dynamic unit measure adjustement.
|
|
121 |
// with dynamic unit measure adjustment.
|
| 122 | 122 |
//
|
| 123 | 123 |
// `unit` one of [0|UnitKiB|UnitKB] zero for no unit
|
| 124 | 124 |
//
|
|
| 133 | 133 |
//
|
| 134 | 134 |
// `wcc` optional WC config
|
| 135 | 135 |
//
|
| 136 | |
// unitFormat example if UnitKiB choosen:
|
|
136 |
// unitFormat example if UnitKiB chosen:
|
| 137 | 137 |
//
|
| 138 | 138 |
// "%.1f" = "1.0MiB/s" or "% .1f" = "1.0 MiB/s"
|
| 139 | 139 |
func EwmaSpeed(unit int, unitFormat string, age float64, sb chan time.Time, wcc ...WC) Decorator {
|
|
| 233 | 233 |
}
|
| 234 | 234 |
}
|
| 235 | 235 |
|
| 236 | |
// AverageSpeed decorator with dynamic unit measure adjustement.
|
|
236 |
// AverageSpeed decorator with dynamic unit measure adjustment.
|
| 237 | 237 |
//
|
| 238 | 238 |
// `unit` one of [0|UnitKiB|UnitKB] zero for no unit
|
| 239 | 239 |
//
|
|
| 241 | 241 |
//
|
| 242 | 242 |
// `wcc` optional WC config
|
| 243 | 243 |
//
|
| 244 | |
// unitFormat example if UnitKiB choosen:
|
|
244 |
// unitFormat example if UnitKiB chosen:
|
| 245 | 245 |
//
|
| 246 | 246 |
// "%.1f" = "1.0MiB/s" or "% .1f" = "1.0 MiB/s"
|
| 247 | 247 |
func AverageSpeed(unit int, unitFormat string, wcc ...WC) Decorator {
|