pcp: Remove unused functions

This commit is contained in:
Akash Kothawale 2018-02-05 02:18:11 -05:00 committed by Pradyumna Kaushik
parent c52bfb08c5
commit 2d3158d99a
2 changed files with 1 additions and 12 deletions

View file

@ -50,15 +50,6 @@ func AverageClusterPowerHistory(history *ring.Ring) float64 {
return (total / count)
}
func sumAndNormalize(tokenSlice []string, normalizer float64) float64 {
sum := 0.0
for _, value := range tokenSlice {
i, _ := strconv.ParseFloat(value, 64)
sum += i
}
return sum / normalizer
}
func utilization(used string, free string) float64 {
u, _ := strconv.ParseFloat(used, 64)
f, _ := strconv.ParseFloat(free, 64)