mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
Remove unnecessary float64() conversion in round().
This commit is contained in:
parent
982923f0c4
commit
82613527f3
|
@ -306,7 +306,7 @@ func roundImpl(timestamp clientmodel.Timestamp, args []Node) interface{} {
|
||||||
if len(args) >= 2 {
|
if len(args) >= 2 {
|
||||||
places = float64(args[1].(ScalarNode).Eval(timestamp))
|
places = float64(args[1].(ScalarNode).Eval(timestamp))
|
||||||
}
|
}
|
||||||
pow := math.Pow(10, float64(places))
|
pow := math.Pow(10, places)
|
||||||
|
|
||||||
n := args[0].(VectorNode)
|
n := args[0].(VectorNode)
|
||||||
vector := n.Eval(timestamp)
|
vector := n.Eval(timestamp)
|
||||||
|
|
Loading…
Reference in a new issue