Lior Vernia has posted comments on this change.

Change subject: engine: Implement HostNetworkQos [de]serialization
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/34122/3/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/HostNetworkQosMapper.java
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/HostNetworkQosMapper.java:

Line 74:             return null;
Line 75:         }
Line 76: 
Line 77:         Double average = 
parameters.get(VdsProperties.HOST_QOS_AVERAGE);
Line 78:         return (average == null) ? null : (int) (average / 
conversionRate);
> How is it possible to get a non-integer value? Is there a way to set the va
I agree concerning doubles. Saving integers in bits and displaying to the user 
as Mbps is no good for REST - I don't want to force users of the API to work 
with ridiculous units such as Mbps (or to introduce non-trivial mapping from 
the engine entity to the REST entity).
Line 79:     }
Line 80: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I8fab9e53938823463ff01af0a153390804f276c3
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Lior Vernia <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to