Change in ovirt-engine[master]: restapi: Do not cast memory.used to int

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Feb 21 14:06:26 UTC 2014


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Do not cast memory.used to int
......................................................................


restapi: Do not cast memory.used to int

Casting the computed value to int caused an overflow
when the value was higher than about 4G. That is not
that unusual nowadays..

Change-Id: I216ac4ef5cf4cfd8cf523a84f75b252e0ce65ad0
Signed-off-by: Martin Sivak <msivak at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/VmStatisticalQuery.java
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Martin Sivák: Verified
  Juan Hernandez: Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/24859
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I216ac4ef5cf4cfd8cf523a84f75b252e0ce65ad0
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list