mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Clarify documentation for resource.Value()
This commit is contained in:
parent
f52713515b
commit
6fa122b2bc
@ -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 {
|
func (q *Quantity) Value() int64 {
|
||||||
return q.ScaledValue(0)
|
return q.ScaledValue(0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user