mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 19:17:52 +00:00
WIFI-2007 update based on review comments
This commit is contained in:
@@ -1137,9 +1137,11 @@ public class MqttStatsPublisher {
|
|||||||
apNodeMetrics.setRadioUtilization(radioType, new ArrayList<>());
|
apNodeMetrics.setRadioUtilization(radioType, new ArrayList<>());
|
||||||
}
|
}
|
||||||
apNodeMetrics.getRadioUtilization(radioType).add(radioUtil);
|
apNodeMetrics.getRadioUtilization(radioType).add(radioUtil);
|
||||||
int noiseAvg = (int) Math.round(DecibelUtils.getAverageDecibel(toIntArray(noiseList)));
|
if (!noiseList.isEmpty()) {
|
||||||
avgNoiseFloor.put(radioType, noiseAvg);
|
int noiseAvg = (int) Math.round(DecibelUtils.getAverageDecibel(noiseList));
|
||||||
apNodeMetrics.setNoiseFloor(radioType, noiseAvg);
|
avgNoiseFloor.put(radioType, noiseAvg);
|
||||||
|
apNodeMetrics.setNoiseFloor(radioType, noiseAvg);
|
||||||
|
}
|
||||||
|
|
||||||
Long totalUtilization = Math.round((double) busy / totalDurationMs);
|
Long totalUtilization = Math.round((double) busy / totalDurationMs);
|
||||||
Long totalNonWifi = totalUtilization - ((busyTx + busyRx) / totalDurationMs);
|
Long totalNonWifi = totalUtilization - ((busyTx + busyRx) / totalDurationMs);
|
||||||
@@ -1784,8 +1786,8 @@ public class MqttStatsPublisher {
|
|||||||
channelInfo.setTotalUtilization(totalUtilization.intValue());
|
channelInfo.setTotalUtilization(totalUtilization.intValue());
|
||||||
channelInfo.setWifiUtilization(totalUtilization.intValue() - totalNonWifi.intValue());
|
channelInfo.setWifiUtilization(totalUtilization.intValue() - totalNonWifi.intValue());
|
||||||
channelInfo.setBandwidth(channelBandwidth);
|
channelInfo.setBandwidth(channelBandwidth);
|
||||||
if (noiseList.size() > 0) {
|
if (!noiseList.isEmpty()) {
|
||||||
channelInfo.setNoiseFloor((int) Math.round(DecibelUtils.getAverageDecibel(toIntArray(noiseList))));
|
channelInfo.setNoiseFloor((int) Math.round(DecibelUtils.getAverageDecibel(noiseList)));
|
||||||
}
|
}
|
||||||
return channelInfo;
|
return channelInfo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user