Roy Golan has uploaded a new change for review. Change subject: core: more accurate cores(threads) ui representation ......................................................................
core: more accurate cores(threads) ui representation in case of 2 cores 2 sockets and cluster-count threads as cores, we want to show at the host general tab 2(4) which reads 2 cores which is actual 4 for scheduling. without that fixed it showed the overall count which was 2(8) Change-Id: I4a2c3563bfd667331a58bf558c1161d4e379c624 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1169404 Signed-off-by: Roy Golan <rgo...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostHardwareGeneralModel.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/36014/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostHardwareGeneralModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostHardwareGeneralModel.java index 2e9ab17..ea78b30 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostHardwareGeneralModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostHardwareGeneralModel.java @@ -259,7 +259,7 @@ String fieldValue = String.valueOf(coresPerSocket); if (vds.getCountThreadsAsCores()) { fieldValue = ConstantsManager.getInstance().getMessages() - .threadsAsCoresPerSocket(coresPerSocket, vds.getCpuThreads()); + .threadsAsCoresPerSocket(coresPerSocket, vds.getCpuThreads() / vds.getCpuSockets()); } setCoresPerSocket(fieldValue); -- To view, visit http://gerrit.ovirt.org/36014 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4a2c3563bfd667331a58bf558c1161d4e379c624 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Roy Golan <rgo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches