func GetMetricUtilizationRatio(metrics PodMetricsInfo, targetUtilization int64) (utilizationRatio float64, currentUtilization int64) {
	metricsTotal := int64(0)
	for _, metric := range metrics {
		metricsTotal += metric.Value
	}

	currentUtilization = metricsTotal / int64(len(metrics))

	return float64(currentUtilization) / float64(targetUtilization), currentUtilization
}
// GetMetricUtilizationRatio takes in a set of metrics and a target utilization value,
// and calculates the ratio of desired to actual utilization
// (returning that and the actual utilization)
GetMetricUtilizationRatio takes in a set of metrics and a target utilization value,
and calculates the ratio of desired to actual utilization
(returning that and the actual utilization)
// GetMetricUtilizationRatio takes in a set of metrics and a target utilization value // and calculates the ratio of desired to actual utilization // ( returning that and the actual utilization )
func GetMetricUtilizationRatio(metrics PodMetricsInfo, targetUtilization int64) (utilizationRatio float64, currentUtilization int64) {
	metricsTotal := int64(0)
	for _, metric := range metrics {
		metricsTotal += metric.Value
	}
	currentUtilization = metricsTotal / int64(len(metrics))
	return float64(currentUtilization) / float64(targetUtilization), currentUtilization
}
func GetMetricUtilizationRatio ( metrics PodMetricsInfo , targetUtilization int64 ) ( utilizationRatio float64 , currentUtilization int64 ) { metricsTotal := int64 ( 0 ) for _ , metric := range metrics { metricsTotal += metric . Value } currentUtilization = metricsTotal / int64 ( len ( metrics ) ) return float64 ( currentUtilization ) / float64 ( targetUtilization ) , currentUtilization }
GetMetricUtilizationRatio takes in a set of metrics and a target utilization value,
and calculates the ratio of desired to actual utilization
(returning that and the actual utilization)
GetMetricUtilizationRatio takes in a set of metrics and a target utilization value and calculates the ratio of desired to actual utilization ( returning that and the actual utilization )