浏览代码

Adjust thresholds

Vecna 4 月之前
父节点
当前提交
aab51731e1
共有 2 个文件被更改,包括 4 次插入5 次删除
  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 extra_info::*;
-use lox_analysis::LoxAnalyzer;
 use negative_report::*;
 use positive_report::*;
 

+ 4 - 4
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
     };