Codebase list golang-github-vbauerster-mpb / e98798e
movingAverageSpeed: comment for ewma.Value() Vladimir Bauer 2 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8383
8484 func (d *movingAverageSpeed) Decor(s Statistics) (string, int) {
8585 var str string
86 // ewma implementation may return 0 before accumulating certain number of samples
8687 if v := d.average.Value(); v != 0 {
8788 str = d.producer(float64(1e9) / v)
8889 } else {