Skip to content

Commit

Permalink
Change failureRate
Browse files Browse the repository at this point in the history
Signed-off-by: HenrikJannsen <[email protected]>
  • Loading branch information
HenrikJannsen committed Jun 10, 2024
1 parent 37bba68 commit 58803c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ private String getConnectionInfo(PeerConncetionInfo info) {
sb.append("Num connection attempts: ").append(info.getNumConnectionAttempts()).append("<br/>");
double failureRate = info.getFailureRate();
String failureRateString = MathUtils.roundDouble(failureRate * 100, 2) + "%";
if (failureRate > 0.9) {
if (failureRate > 0.5) {
failureRateString = asError(failureRateString, failureRateString);
} else if (failureRate > 0.3) {
} else if (failureRate > 0.25) {
failureRateString = asWarn(failureRateString, failureRateString);
}
sb.append("FailureRate (success/failures): ").append(failureRateString)
Expand Down

0 comments on commit 58803c2

Please sign in to comment.