mirror of https://github.com/apache/cloudstack.git
bug CS-15094: cpu limit is cpuspeed*cpucount
This commit is contained in:
parent
79a7ddb970
commit
a96a9a040d
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue