feat: default auto lat-top and speed-top to 0 (keep all)

- lat-top now defaults to 0 so every IP within --lat-max feeds the speed
  stage, instead of capping at the fastest 30
- speed-top now defaults to 0 so every IP passing --min-speed is written
  to result.txt, instead of capping at 10
- downstream truncation already treats 0 as keep-all; update README
This commit is contained in:
chuan
2026-06-24 01:37:26 +08:00
Unverified
parent 27d4b8d20d
commit dbea080708
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -92,8 +92,8 @@ flowchart LR
| --- | --- | --- |
| `[NODE]` / `--node-file` | — | 节点 URL,或从文件读取 |
| `-n, --count` | 50 | 阶段 1 收集的有效 IP 数 |
| `--lat-top` | 30 | 阶段 2 保留的最快 IP 数 |
| `--speed-top` | 10 | 最终节点数 |
| `--lat-top` | 0 | 阶段 2 保留的最快 IP 数(0 = 全部) |
| `--speed-top` | 0 | 最终节点数(0 = 全部) |
| `--speed-concurrency` | 1 | 测速并发数(1 最准,调大更快) |
| `-6, --ipv6` | off | 同时测 IPv6 |
| `--ping-max` | 300 | 第一次 ping(TCP)延迟上限 ms |
+4 -3
View File
@@ -47,11 +47,12 @@ pub(crate) struct AutoArgs {
pub(crate) count: usize,
/// Stage 2: keep the fastest N after latency (feeds the speed stage).
#[arg(long, default_value_t = 30)]
/// 0 = keep all that pass.
#[arg(long, default_value_t = 0)]
pub(crate) lat_top: usize,
/// Stage 3: final node count written to result.txt.
#[arg(long, default_value_t = 10)]
/// Stage 3: final node count written to result.txt. 0 = keep all.
#[arg(long, default_value_t = 0)]
pub(crate) speed_top: usize,
/// Stage 3: concurrent downloads during the speed test (1 = most accurate).