default speed unit: cast to int64
Vladimir Bauer
3 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
decor/speed.go
less
more
170
170
}
171
171
default:
172
172
return func(speed float64) string {
173
return fmt.Sprintf(format, speed)
173
return fmt.Sprintf(format, int64(math.Round(speed)))
174
174
}
175
175
}
176
176
}