From ef19e3a9e79c85753f75b8f87a06b67c574a72ee Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 30 May 2022 21:03:09 +0200 Subject: [PATCH] significantly lower max_update to obtain a stable ranking --- planetwars-server/src/modules/ranking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetwars-server/src/modules/ranking.rs b/planetwars-server/src/modules/ranking.rs index cc81f0f..f76fbae 100644 --- a/planetwars-server/src/modules/ranking.rs +++ b/planetwars-server/src/modules/ranking.rs @@ -9,7 +9,7 @@ use tokio; const RANKER_INTERVAL: u64 = 60; const START_RATING: f64 = 0.0; const SCALE: f64 = 100.0; -const MAX_UPDATE: f64 = 10.0; +const MAX_UPDATE: f64 = 0.1; pub async fn run_ranker(db_pool: DbPool) { // TODO: make this configurable