Codebase list golang-github-vbauerster-mpb / 049fb48
misspell fix Vladimir Bauer 8 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
150150 return Counters(UnitKB, pairFormat, wcc...)
151151 }
152152
153 // Counters decorator with dynamic unit measure adjustement
153 // Counters decorator with dynamic unit measure adjustment.
154154 //
155155 // `unit` one of [0|UnitKiB|UnitKB] zero for no unit
156156 //
118118 }
119119
120120 // EwmaSpeed exponential-weighted-moving-average based speed decorator,
121 // with dynamic unit measure adjustement.
121 // with dynamic unit measure adjustment.
122122 //
123123 // `unit` one of [0|UnitKiB|UnitKB] zero for no unit
124124 //
133133 //
134134 // `wcc` optional WC config
135135 //
136 // unitFormat example if UnitKiB choosen:
136 // unitFormat example if UnitKiB chosen:
137137 //
138138 // "%.1f" = "1.0MiB/s" or "% .1f" = "1.0 MiB/s"
139139 func EwmaSpeed(unit int, unitFormat string, age float64, sb chan time.Time, wcc ...WC) Decorator {
233233 }
234234 }
235235
236 // AverageSpeed decorator with dynamic unit measure adjustement.
236 // AverageSpeed decorator with dynamic unit measure adjustment.
237237 //
238238 // `unit` one of [0|UnitKiB|UnitKB] zero for no unit
239239 //
241241 //
242242 // `wcc` optional WC config
243243 //
244 // unitFormat example if UnitKiB choosen:
244 // unitFormat example if UnitKiB chosen:
245245 //
246246 // "%.1f" = "1.0MiB/s" or "% .1f" = "1.0 MiB/s"
247247 func AverageSpeed(unit int, unitFormat string, wcc ...WC) Decorator {