AverageETA AverageSpeed
Vladimir Bauer
8 years ago
| 126 | 126 |
}
|
| 127 | 127 |
}
|
| 128 | 128 |
|
| 129 | |
// TotalAverageETA decorator.
|
|
129 |
// AverageETA decorator.
|
| 130 | 130 |
//
|
| 131 | 131 |
// `style` one of [ET_STYLE_GO|ET_STYLE_HHMMSS|ET_STYLE_HHMM|ET_STYLE_MMSS]
|
| 132 | 132 |
//
|
| 133 | 133 |
// `wcc` optional WC config
|
| 134 | |
func TotalAverageETA(style int, wcc ...WC) Decorator {
|
|
134 |
func AverageETA(style int, wcc ...WC) Decorator {
|
| 135 | 135 |
var wc WC
|
| 136 | 136 |
for _, widthConf := range wcc {
|
| 137 | 137 |
wc = widthConf
|
| 229 | 229 |
}
|
| 230 | 230 |
}
|
| 231 | 231 |
|
| 232 | |
// TotalAverageSpeed decorator with dynamic unit measure adjustement.
|
|
232 |
// AverageSpeed decorator with dynamic unit measure adjustement.
|
| 233 | 233 |
//
|
| 234 | 234 |
// `unit` one of [0|UnitKiB|UnitKB] zero for no unit
|
| 235 | 235 |
//
|
| 236 | 236 |
// `unitFormat` printf compatible verb for value, like "%f" or "%d"
|
| 237 | 237 |
//
|
| 238 | 238 |
// `wcc` optional WC config
|
| 239 | |
func TotalAverageSpeed(unit int, unitFormat string, wcc ...WC) Decorator {
|
|
239 |
func AverageSpeed(unit int, unitFormat string, wcc ...WC) Decorator {
|
| 240 | 240 |
var wc WC
|
| 241 | 241 |
for _, widthConf := range wcc {
|
| 242 | 242 |
wc = widthConf
|