mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-11-03 20:17:53 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -1253,7 +1253,7 @@ public class OpensyncExternalIntegrationMqttMessageProcessor {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            if (deviceReport.hasCpuUtil() && deviceReport.getCpuUtil().hasCpuUtil()) {
 | 
					            if (deviceReport.hasCpuUtil() && deviceReport.getCpuUtil().hasCpuUtil()) {
 | 
				
			||||||
                Integer cpuUtilization = deviceReport.getCpuUtil().getCpuUtil();
 | 
					                Integer cpuUtilization = deviceReport.getCpuUtil().getCpuUtil();
 | 
				
			||||||
                apPerformance.setCpuUtilized(new byte[] { cpuUtilization.byteValue() });
 | 
					                apPerformance.setCpuUtilized(new int[] { cpuUtilization.intValue() });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            apPerformance.setEthLinkState(EthernetLinkState.UP1000_FULL_DUPLEX);
 | 
					            apPerformance.setEthLinkState(EthernetLinkState.UP1000_FULL_DUPLEX);
 | 
				
			||||||
@@ -1735,8 +1735,8 @@ public class OpensyncExternalIntegrationMqttMessageProcessor {
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (cl.getStats().hasTxRate() && cl.getStats().hasRxRate()) {
 | 
					                    if (cl.getStats().hasTxRate() && cl.getStats().hasRxRate()) {
 | 
				
			||||||
                        cMetrics.setRates(new byte[] { Double.valueOf(cl.getStats().getTxRate() / 1000).byteValue(),
 | 
					                        cMetrics.setRates(new int[] { Double.valueOf(cl.getStats().getTxRate() / 1000).intValue(),
 | 
				
			||||||
                                Double.valueOf(cl.getStats().getRxRate() / 1000).byteValue() });
 | 
					                                Double.valueOf(cl.getStats().getRxRate() / 1000).intValue() });
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (cl.getStats().hasTxErrors()) {
 | 
					                    if (cl.getStats().hasTxErrors()) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user