Change in ovirt-engine[master]: core: more accurate scores for ED weight module
gchaplik at redhat.com
gchaplik at redhat.com
Mon Dec 16 11:09:50 UTC 2013
Gilad Chaplik has submitted this change and it was merged.
Change subject: core: more accurate scores for ED weight module
......................................................................
core: more accurate scores for ED weight module
Even Distribution (ED) weight module inner calculation score
is a real number, and we expose it as an integer by rounding it
up.
Currently we round it up (Math.ceil), but to be more accurate we should round
it to nearest integer (Math.round).
To avoid 0 adding 1 to the score.
Change-Id: Ib668cf266629eb4e0f2c1cbd5ac893dc7deac19c
Bug-Url: https://bugzilla.redhat.com/1040460
Signed-off-by: Gilad Chaplik <gchaplik at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/policyunits/EvenDistributionWeightPolicyUnit.java
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Gilad Chaplik: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/22336
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib668cf266629eb4e0f2c1cbd5ac893dc7deac19c
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the Engine-commits
mailing list