You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/10/15 22:20:09 UTC

[14/25] git commit: updated refs/heads/ui-restyle to 3fdb61f

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/7d89cecf
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7d89cecf
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7d89cecf

Branch: refs/heads/ui-restyle
Commit: 7d89cecfffeb6e08cca497336d6a797bc375c777
Parents: 6895251
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:33:05 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/7d89cecf/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 07b8be4..108a3ec 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());