You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2013/10/15 02:35:45 UTC
git commit: updated refs/heads/4.2 to b7c8d19
Updated Branches:
refs/heads/4.2 2ceea80a1 -> b7c8d1910
CLOUDSTACK-4863: Count CPU hyper-threading as logical CPU core for allocation
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b7c8d191
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b7c8d191
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b7c8d191
Branch: refs/heads/4.2
Commit: b7c8d1910ac97d5a4ab6f809413413dd779b40cf
Parents: 2ceea80
Author: Kelven Yang <ke...@gmail.com>
Authored: Mon Oct 14 17:32:50 2013 -0700
Committer: Kelven Yang <ke...@gmail.com>
Committed: Mon Oct 14 17:35:32 2013 -0700
----------------------------------------------------------------------
vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b7c8d191/vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java
index c350aa5..899a5a7 100755
--- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java
@@ -910,7 +910,7 @@ public class HostMO extends BaseMO implements VmwareHypervisorHost {
HostHardwareSummary hardwareSummary = getHostHardwareSummary();
// TODO: not sure how hyper-thread is counted in VMware resource pool
- summary.setCpuCount(hardwareSummary.getNumCpuCores());
+ summary.setCpuCount(hardwareSummary.getNumCpuThreads());
summary.setMemoryBytes(hardwareSummary.getMemorySize());
summary.setCpuSpeed(hardwareSummary.getCpuMhz());