mirror of https://github.com/apache/cloudstack.git
bug CS-15094: cpu limit is cpuspeed*cpucount
This commit is contained in:
parent
c7bffc7b89
commit
a74e8d8b6b
|
|
@ -478,7 +478,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