Codebase list golang-github-vbauerster-mpb / 6ce7232
minor: no need for explicit type cast const type is inferred Vladimir Bauer 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8585 var str string
8686 // ewma implementation may return 0 before accumulating certain number of samples
8787 if v := d.average.Value(); v != 0 {
88 str = d.producer(float64(1e9) / v)
88 str = d.producer(1e9 / v)
8989 } else {
9090 str = d.producer(0)
9191 }