Codebase list golang-github-vbauerster-mpb / 3a6199c
math rules rule Vladimir Bauer 6 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8484
8585 var speed float64
8686 if v := math.Round(d.average.Value()); v != 0 {
87 current := float64(st.Current)
88 speed = current / (current * time.Duration(v).Seconds())
87 speed = 1 / time.Duration(v).Seconds()
8988 }
9089
9190 d.msg = d.producer(speed)