We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7980f03 commit c67f02fCopy full SHA for c67f02f
internal/store/utils.go
@@ -218,7 +218,7 @@ func mergeKeyValues(keyValues ...[]string) (keys, values []string) {
218
return keys, values
219
}
220
221
-// convertValueToFloat64 converts a resource.Quantity to a float64.
+// convertValueToFloat64 converts a resource.Quantity to a float64 and checks for a possible overflow in the value.
222
func convertValueToFloat64(q *resource.Quantity) float64 {
223
if q.Value() > resource.MaxMilliValue {
224
return float64(q.Value())
0 commit comments