CKS: fix resource limitation check on cpu when scale cks cluster (#12379)

This commit is contained in:
Wei Zhou 2026-01-21 09:59:21 +01:00 committed by GitHub
parent 3828a3b744
commit 036489b288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -1383,8 +1383,7 @@ public class KubernetesClusterManagerImpl extends ManagerBase implements Kuberne
}
totalAdditionalVms += additional;
long effectiveCpu = (long) so.getCpu() * so.getSpeed();
totalAdditionalCpuUnits += effectiveCpu * additional;
totalAdditionalCpuUnits += so.getCpu() * additional;
totalAdditionalRamMb += so.getRamSize() * additional;
try {