mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 13:15:36 +00:00
fix typo
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// GetResourceUtilizationRatio takes in a set of metrics, a set of matching requests,
|
// GetResourceUtilizationRatio takes in a set of metrics, a set of matching requests,
|
||||||
// and a target utilization percentage, and calcuates the the ratio of
|
// and a target utilization percentage, and calculates the the ratio of
|
||||||
// desired to actual utilization (returning that, the actual utilization, and the raw average value)
|
// desired to actual utilization (returning that, the actual utilization, and the raw average value)
|
||||||
func GetResourceUtilizationRatio(metrics PodMetricsInfo, requests map[string]int64, targetUtilization int32) (utilizationRatio float64, currentUtilization int32, rawAverageValue int64, err error) {
|
func GetResourceUtilizationRatio(metrics PodMetricsInfo, requests map[string]int64, targetUtilization int32) (utilizationRatio float64, currentUtilization int32, rawAverageValue int64, err error) {
|
||||||
metricsTotal := int64(0)
|
metricsTotal := int64(0)
|
||||||
|
Reference in New Issue
Block a user