Codebase list golang-github-vbauerster-mpb / 9502d24
comment: EwmaUpdate is called concurrently Vladimir Bauer 1 year, 10 months ago
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8080 return d.Format(d.producer(remaining))
8181 }
8282
83 // EwmaUpdate is called concurrently with (d *movingAverageETA).Decor
8384 func (d *movingAverageETA) EwmaUpdate(n int64, dur time.Duration) {
8485 if n <= 0 {
8586 d.zDur += dur
9292 return d.Format(str)
9393 }
9494
95 // EwmaUpdate is called concurrently with (d *movingAverageSpeed).Decor
9596 func (d *movingAverageSpeed) EwmaUpdate(n int64, dur time.Duration) {
9697 if n <= 0 {
9798 d.zDur += dur