- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for parsePercentage (0.44 sec)
-
pkg/kubelet/eviction/helpers.go
return &evictionapi.Threshold{ Signal: signal, Operator: operator, Value: evictionapi.ThresholdValue{ Quantity: &quantity, }, }, nil } // parsePercentage parses a string representing a percentage value func parsePercentage(input string) (float32, error) { value, err := strconv.ParseFloat(strings.TrimRight(input, "%"), 32) if err != nil { return 0, err } return float32(value) / 100, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 53.6K bytes - Viewed (0)