Browse Source

Adjust thresholds

Vecna 4 months ago
parent
commit
aab51731e1
2 changed files with 4 additions and 5 deletions
  1. 0 1
      src/lib.rs
  2. 4 4
      src/lox_analysis.rs

+ 0 - 1
src/lib.rs

@@ -35,7 +35,6 @@ pub mod simulation {
 
 
 use analysis::Analyzer;
 use analysis::Analyzer;
 use extra_info::*;
 use extra_info::*;
-use lox_analysis::LoxAnalyzer;
 use negative_report::*;
 use negative_report::*;
 use positive_report::*;
 use positive_report::*;
 
 

+ 4 - 4
src/lox_analysis.rs

@@ -66,10 +66,10 @@ fn too_few_bridge_ips(
         8
         8
     } else if max_users <= 40 {
     } else if max_users <= 40 {
         // expect 30
         // expect 30
-        24
+        16
     } else if max_users <= 96 {
     } else if max_users <= 96 {
         // expect 90
         // expect 90
-        32
+        24
     } else {
     } else {
         // also 32, but it could be something else
         // also 32, but it could be something else
         32
         32
@@ -85,9 +85,9 @@ fn too_few_bridge_ips(
         min_bip
         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 {
     let min_bip = if positive_reports_today > 0 {
-        min_bip * 2
+        min_bip / 2
     } else {
     } else {
         min_bip
         min_bip
     };
     };