mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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();
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user