diff --git a/internal/controllers/vpa_runnable.go b/internal/controllers/vpa_runnable.go index 75055d5..053a6b1 100644 --- a/internal/controllers/vpa_runnable.go +++ b/internal/controllers/vpa_runnable.go @@ -168,5 +168,5 @@ func maxByMemory(nodes []corev1.Node) corev1.Node { } func scaleQuantity(q *resource.Quantity, percent int64) *resource.Quantity { - return resource.NewQuantity(q.Value()*percent/scaleDivisor, q.Format) + return resource.NewMilliQuantity(q.MilliValue()*percent/scaleDivisor, q.Format) }