From 70ecc3946611bc6146fb58fab78a62a5288b1df7 Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Thu, 24 Aug 2023 13:24:32 +0200 Subject: [PATCH] Don't round, CPU fractions are supported. --- .../resources/org/jdrupes/vmoperator/manager/runnerSts.ftl.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.jdrupes.vmoperator.manager/resources/org/jdrupes/vmoperator/manager/runnerSts.ftl.yaml b/org.jdrupes.vmoperator.manager/resources/org/jdrupes/vmoperator/manager/runnerSts.ftl.yaml index 053e1c3..60834b9 100644 --- a/org.jdrupes.vmoperator.manager/resources/org/jdrupes/vmoperator/manager/runnerSts.ftl.yaml +++ b/org.jdrupes.vmoperator.manager/resources/org/jdrupes/vmoperator/manager/runnerSts.ftl.yaml @@ -99,7 +99,7 @@ spec: <#if reconciler.cpuOvercommit??> <#assign factor = reconciler.cpuOvercommit * 1.0 /> - cpu: ${ (parseQuantity(cr.spec.vm.currentCpus.asString) / factor)?floor?c } + cpu: ${ (parseQuantity(cr.spec.vm.currentCpus.asString) / factor)?c } <#if cr.spec.vm.currentRam?? > <#assign factor = 1.25 />