Skip to content

Commit c67f02f

Browse files
authored
Apply suggestions from code review
1 parent 7980f03 commit c67f02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/store/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func mergeKeyValues(keyValues ...[]string) (keys, values []string) {
218218
return keys, values
219219
}
220220

221-
// convertValueToFloat64 converts a resource.Quantity to a float64.
221+
// convertValueToFloat64 converts a resource.Quantity to a float64 and checks for a possible overflow in the value.
222222
func convertValueToFloat64(q *resource.Quantity) float64 {
223223
if q.Value() > resource.MaxMilliValue {
224224
return float64(q.Value())

0 commit comments

Comments
 (0)