Codebase list golang-github-vbauerster-mpb / 4205c5c
receiver name s should be consistent with previous receiver name d Vladimir Bauer 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
191191 return d.FormatMsg(d.msg)
192192 }
193193
194 func (s *movingAverageSpeed) NextAmount(n int, wdd ...time.Duration) {
194 func (d *movingAverageSpeed) NextAmount(n int, wdd ...time.Duration) {
195195 var workDuration time.Duration
196196 for _, wd := range wdd {
197197 workDuration = wd
200200 if math.IsInf(speed, 0) || math.IsNaN(speed) {
201201 return
202202 }
203 s.average.Add(speed)
203 d.average.Add(speed)
204204 }
205205
206206 func (d *movingAverageSpeed) OnCompleteMessage(msg string) {