comment: EwmaUpdate is called concurrently
Vladimir Bauer
1 year, 10 months ago
| 80 | 80 |
return d.Format(d.producer(remaining))
|
| 81 | 81 |
}
|
| 82 | 82 |
|
|
83 |
// EwmaUpdate is called concurrently with (d *movingAverageETA).Decor
|
| 83 | 84 |
func (d *movingAverageETA) EwmaUpdate(n int64, dur time.Duration) {
|
| 84 | 85 |
if n <= 0 {
|
| 85 | 86 |
d.zDur += dur
|
| 92 | 92 |
return d.Format(str)
|
| 93 | 93 |
}
|
| 94 | 94 |
|
|
95 |
// EwmaUpdate is called concurrently with (d *movingAverageSpeed).Decor
|
| 95 | 96 |
func (d *movingAverageSpeed) EwmaUpdate(n int64, dur time.Duration) {
|
| 96 | 97 |
if n <= 0 {
|
| 97 | 98 |
d.zDur += dur
|