bug CS-15094: cpu limit is cpuspeed*cpucount

This commit is contained in:
Edison Su 2012-05-25 10:50:26 -07:00
parent c7bffc7b89
commit a74e8d8b6b

View File

@ -478,7 +478,7 @@ public class VmwareHelper {
ResourceAllocationInfo cpuInfo = new ResourceAllocationInfo(); ResourceAllocationInfo cpuInfo = new ResourceAllocationInfo();
if (limitCpuUse) { if (limitCpuUse) {
cpuInfo.setLimit((long)cpuSpeedMHz); cpuInfo.setLimit((long)(cpuSpeedMHz * cpuCount));
} else { } else {
cpuInfo.setLimit(-1L); cpuInfo.setLimit(-1L);
} }