From 6fa122b2bc7922bd382aa9bd1a8d1574cae46a7c Mon Sep 17 00:00:00 2001 From: Matt Kelly Date: Mon, 4 Feb 2019 14:44:35 -0500 Subject: [PATCH] Clarify documentation for resource.Value() --- staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go b/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go index b155a62a45a..54fda58064d 100644 --- a/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go +++ b/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go @@ -680,7 +680,7 @@ func NewScaledQuantity(value int64, scale Scale) *Quantity { } } -// Value returns the value of q; any fractional part will be lost. +// Value returns the unscaled value of q rounded up to the nearest integer away from 0. func (q *Quantity) Value() int64 { return q.ScaledValue(0) }