mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Change failureRate
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
37bba686d5
commit
58803c2a78
1 changed files with 2 additions and 2 deletions
|
@ -193,9 +193,9 @@ public class SimpleHttpServer {
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue