Skip to content

Commit 9e981b4

Browse files
phsmDaanHoogland
andauthored
Update plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
Co-authored-by: dahn <[email protected]>
1 parent c9ce12a commit 9e981b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,8 +2804,8 @@ public int calculateCpuShares(VirtualMachineTO vmTO) {
28042804
*/
28052805
if (updatedCpuShares < 2) updatedCpuShares = 2;
28062806

2807-
logger.debug(String.format("This host utilizes cgroupv2 (as the max shares value is [%s]), thus, the VM requested shares of [%s] will be converted to " +
2808-
"consider the host limits; the new CPU shares value is [%s].", hostCpuMaxCapacity, requestedCpuShares, updatedCpuShares));
2807+
LOGGER.debug(String.format("This host utilizes cgroupv2 (as the max shares value is [{}]), thus, the VM requested shares of [{}] will be converted to " +
2808+
"consider the host limits; the new CPU shares value is [{}].", hostCpuMaxCapacity, requestedCpuShares, updatedCpuShares);
28092809
return updatedCpuShares;
28102810
}
28112811
LOGGER.debug(String.format("This host does not have a maximum CPU shares set; therefore, this host utilizes cgroupv1 and the VM requested CPU shares [%s] will not be " +

0 commit comments

Comments
 (0)