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
parent 27d4b8d20d
commit dbea080708
2 changed files with 6 additions and 5 deletions
+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).