Alona Kaplan has posted comments on this change. Change subject: engine: event should contain the iface which exceeded defined threshold ......................................................................
Patch Set 7: (1 comment) http://gerrit.ovirt.org/#/c/25609/7/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java: Line 305: Double receiveRate = iface.getStatistics().getReceiveRate(); Line 306: if ((transmitRate != null && iface.getStatistics().getTransmitRate().intValue() > maxUsedPercentageThreshold) Line 307: || (receiveRate != null && iface.getStatistics().getReceiveRate().intValue() > maxUsedPercentageThreshold)) { Line 308: AuditLogableBase logable = new AuditLogableBase(_vds.getId()); Line 309: logable.setCustomId(iface.getName().toString()); > isn't toString() redundant ? I guess the returned type of iface.getName() Done Line 310: logable.addCustomValue("HostName", _vds.getName()); Line 311: logable.addCustomValue("InterfaceName", iface.getName()); Line 312: logable.addCustomValue("Threshold", maxUsedPercentageThreshold.toString()); Line 313: logable.addCustomValue("TransmitRate", String.valueOf(transmitRate.intValue())); -- To view, visit http://gerrit.ovirt.org/25609 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I22b3510398ac6fa3acf93fcb596dd6ea10b26366 Gerrit-PatchSet: 7 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alona Kaplan <alkap...@redhat.com> Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches