From aab51731e1908f73ce997591ff4036c358d24c74 Mon Sep 17 00:00:00 2001 From: Vecna Date: Sat, 29 Jun 2024 15:40:25 -0400 Subject: [PATCH] Adjust thresholds --- src/lib.rs | 1 - src/lox_analysis.rs | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 070ff92..0b5a05d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,7 +35,6 @@ pub mod simulation { use analysis::Analyzer; use extra_info::*; -use lox_analysis::LoxAnalyzer; use negative_report::*; use positive_report::*; diff --git a/src/lox_analysis.rs b/src/lox_analysis.rs index 6b3ab16..db87e1a 100644 --- a/src/lox_analysis.rs +++ b/src/lox_analysis.rs @@ -66,10 +66,10 @@ fn too_few_bridge_ips( 8 } else if max_users <= 40 { // expect 30 - 24 + 16 } else if max_users <= 96 { // expect 90 - 32 + 24 } else { // also 32, but it could be something else 32 @@ -85,9 +85,9 @@ fn too_few_bridge_ips( min_bip }; - // If we see positive reports from trusted users, double the minimum + // If we see positive reports from trusted users, halve the minimum let min_bip = if positive_reports_today > 0 { - min_bip * 2 + min_bip / 2 } else { min_bip };