k3s/vendor/github.com/docker/go-metrics/helpers.go

11 lines
128 B
Go
Raw Normal View History

2019-01-12 04:58:27 +00:00
package metrics
func sumFloat64(vs ...float64) float64 {
var sum float64
for _, v := range vs {
sum += v
}
return sum
}