From 9899286bc073edac7c990b3f3628d3947982ac0a Mon Sep 17 00:00:00 2001 From: Dmitry Toptygin Date: Tue, 15 Sep 2020 15:04:01 -0400 Subject: [PATCH] in ApPerformance change cpuUtilized type to int[], in ClientMetrics change mcs and rates types to int[] - they were originally defined as byte[], but that causes them to be serialized as base64-encoded strings, which is annoying --- .../OpensyncExternalIntegrationMqttMessageProcessor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/OpensyncExternalIntegrationMqttMessageProcessor.java b/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/OpensyncExternalIntegrationMqttMessageProcessor.java index 5483d70..9e9e7eb 100644 --- a/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/OpensyncExternalIntegrationMqttMessageProcessor.java +++ b/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/OpensyncExternalIntegrationMqttMessageProcessor.java @@ -1253,7 +1253,7 @@ public class OpensyncExternalIntegrationMqttMessageProcessor { if (deviceReport.hasCpuUtil() && deviceReport.getCpuUtil().hasCpuUtil()) { Integer cpuUtilization = deviceReport.getCpuUtil().getCpuUtil(); - apPerformance.setCpuUtilized(new byte[] { cpuUtilization.byteValue() }); + apPerformance.setCpuUtilized(new int[] { cpuUtilization.intValue() }); } apPerformance.setEthLinkState(EthernetLinkState.UP1000_FULL_DUPLEX); @@ -1735,8 +1735,8 @@ public class OpensyncExternalIntegrationMqttMessageProcessor { } if (cl.getStats().hasTxRate() && cl.getStats().hasRxRate()) { - cMetrics.setRates(new byte[] { Double.valueOf(cl.getStats().getTxRate() / 1000).byteValue(), - Double.valueOf(cl.getStats().getRxRate() / 1000).byteValue() }); + cMetrics.setRates(new int[] { Double.valueOf(cl.getStats().getTxRate() / 1000).intValue(), + Double.valueOf(cl.getStats().getRxRate() / 1000).intValue() }); } if (cl.getStats().hasTxErrors()) {