Fix function name in comment
@@ -59,7 +59,7 @@ func percent(value int64, percent int64) string {
return fmt.Sprintf("%d", int64(float64(value)*(float64(percent)/100.0)))
}
-// total_resources uses a map of resource types to weights to calculate a weighted sum of the resource requests
+// resourceRequests uses a map of resource types to weights to calculate a weighted sum of the resource requests
func resourceRequests(pods corev1.PodList, weights string) (float64, error) {
var totalResources float64
parsedWeights := make(map[string]float64)
