Skip to content

Commit

Permalink
reverted eps-checks to strict 40 points to measure speed stability
Browse files Browse the repository at this point in the history
  • Loading branch information
westandskif committed Jul 17, 2023
1 parent 3a30120 commit e30b440
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.16.1 (2023-07-17)

- reverted `--eps-checks` default to 40 (back to strict threshold on early
speed test exit in cases where speed is stable)
- fixed `--version` option

# 0.16.0 (2023-07-16)

- added environment variables support, see e.g. `rate-mirrors --help` and
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "rate_mirrors"
version = "0.16.0"
version = "0.16.1"
authors = ["Nikita Almakov <[email protected]>"]
edition = "2021"
description = "Everyday-use client-side map-aware mirror ranking tool (Arch Linux; Manjaro; custom ones)"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
5 changes: 3 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ pub enum Target {
#[derive(Debug, Parser)]
#[command(
name = "rate-mirrors config",
about,
version,
rename_all = "kebab-case",
rename_all_env = "SCREAMING_SNAKE_CASE"
)]
/// Usually default options should work
pub struct Config {
/// Per-mirror speed test timeout in milliseconds
#[command(subcommand)]
Expand Down Expand Up @@ -171,7 +172,7 @@ pub struct Config {
/// Per-mirror: after min measurement time elapsed, check such number of
/// subsequently downloaded data chunks whether speed variations are less
/// then "eps"
#[arg(env = "RATE_MIRRORS_EPS_CHECKS", long, default_value = "30")]
#[arg(env = "RATE_MIRRORS_EPS_CHECKS", long, default_value = "40")]
pub eps_checks: usize,

/// Number of simultaneous speed tests
Expand Down

0 comments on commit e30b440

Please sign in to comment.