Skip to content

Commit

Permalink
fix: Fix setting health check status in /colibri/stats and xmpp. (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Feb 13, 2023
1 parent 812297e commit f6426ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public VideobridgeStatistics(
unlockedSetStat(CONFERENCE_SIZES, "[]");
unlockedSetStat(TIMESTAMP, timestampFormat.format(new Date()));
unlockedSetStat("healthy",
healthy.setAndGet(videobridge.getJvbHealthChecker().getResult() == null));
healthy.setAndGet(videobridge.getJvbHealthChecker().getResult().getSuccess()));

// Set these once, they won't change.
unlockedSetStat(VERSION, videobridge.getVersion().toString());
Expand Down Expand Up @@ -630,7 +630,7 @@ private void generate0()
unlockedSetStat("preemptive_kfr_suppressed", jvbStats.preemptiveKeyframeRequestsSuppressed.get());
unlockedSetStat("endpoints_with_spurious_remb", RembHandler.Companion.endpointsWithSpuriousRemb());
unlockedSetStat("healthy",
healthy.setAndGet(videobridge.getJvbHealthChecker().getResult() == null));
healthy.setAndGet(videobridge.getJvbHealthChecker().getResult().getSuccess()));
unlockedSetStat("endpoints_disconnected", EndpointConnectionStatusMonitor.endpointsDisconnected.get());
unlockedSetStat("endpoints_reconnected", EndpointConnectionStatusMonitor.endpointsReconnected.get());
}
Expand Down

0 comments on commit f6426ea

Please sign in to comment.