bug CS-15094: cpu limit is cpuspeed*cpucount

This commit is contained in:
Edison Su 2012-05-25 10:50:26 -07:00
parent 79a7ddb970
commit a96a9a040d
1 changed files with 1 additions and 1 deletions

View File

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