mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -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 {
|
||||
places = float64(args[1].(ScalarNode).Eval(timestamp))
|
||||
}
|
||||
pow := math.Pow(10, float64(places))
|
||||
pow := math.Pow(10, places)
|
||||
|
||||
n := args[0].(VectorNode)
|
||||
vector := n.Eval(timestamp)
|
||||
|
|
Loading…
Reference in a new issue