diff --git a/src/main/java/org/jitsi/videobridge/Conference.java b/src/main/java/org/jitsi/videobridge/Conference.java index 3215b74a99..2b7ff36c65 100644 --- a/src/main/java/org/jitsi/videobridge/Conference.java +++ b/src/main/java/org/jitsi/videobridge/Conference.java @@ -716,18 +716,18 @@ else if (t instanceof ThreadDeath) durationSeconds); videobridgeStatistics.totalNoPayloadChannels.addAndGet( - statistics.totalNoPayloadChannels.intValue()); + statistics.totalNoPayloadChannels.get()); videobridgeStatistics.totalNoTransportChannels.addAndGet( - statistics.totalNoTransportChannels.intValue()); + statistics.totalNoTransportChannels.get()); videobridgeStatistics.totalChannels.addAndGet( - statistics.totalChannels.intValue()); + statistics.totalChannels.get()); boolean hasFailed - = statistics.totalNoPayloadChannels.intValue() - >= statistics.totalChannels.intValue(); + = statistics.totalNoPayloadChannels.get() + >= statistics.totalChannels.get(); boolean hasPartiallyFailed - = statistics.totalNoPayloadChannels.intValue() != 0; + = statistics.totalNoPayloadChannels.get() != 0; if (hasPartiallyFailed) { diff --git a/src/main/java/org/jitsi/videobridge/stats/VideobridgeStatistics.java b/src/main/java/org/jitsi/videobridge/stats/VideobridgeStatistics.java index 524d19e0ad..f8175e0234 100644 --- a/src/main/java/org/jitsi/videobridge/stats/VideobridgeStatistics.java +++ b/src/main/java/org/jitsi/videobridge/stats/VideobridgeStatistics.java @@ -361,21 +361,19 @@ protected void generate0() { Videobridge.Statistics jvbStats = videobridge.getStatistics(); totalConferencesCreated - += jvbStats.totalConferencesCreated.intValue(); + += jvbStats.totalConferencesCreated.get(); totalConferencesCompleted - += jvbStats.totalConferencesCompleted.intValue(); + += jvbStats.totalConferencesCompleted.get(); totalConferenceSeconds - += jvbStats.totalConferenceSeconds.intValue(); + += jvbStats.totalConferenceSeconds.get(); totalFailedConferences - += jvbStats.totalFailedConferences.intValue(); + += jvbStats.totalFailedConferences.get(); totalPartiallyFailedConferences - += jvbStats.totalPartiallyFailedConferences.intValue(); + += jvbStats.totalPartiallyFailedConferences.get(); totalNoTransportChannels - += jvbStats.totalNoTransportChannels.intValue(); - totalNoPayloadChannels - += jvbStats.totalNoPayloadChannels.intValue(); - totalChannels - += jvbStats.totalChannels.intValue(); + += jvbStats.totalNoTransportChannels.get(); + totalNoPayloadChannels += jvbStats.totalNoPayloadChannels.get(); + totalChannels += jvbStats.totalChannels.get(); for (Conference conference : videobridge.getConferences()) {