aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-05-30 21:03:09 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-05-30 21:03:09 +0200
commitef19e3a9e79c85753f75b8f87a06b67c574a72ee (patch)
tree4e114fdbeefcbdc2756085e4f3911de96feb16e2 /planetwars-server/src/modules
parent6e1167ee9e4ce2bef3c4a7f38efc362be1d750cd (diff)
downloadplanetwars.dev-ef19e3a9e79c85753f75b8f87a06b67c574a72ee.tar.xz
planetwars.dev-ef19e3a9e79c85753f75b8f87a06b67c574a72ee.zip
significantly lower max_update to obtain a stable ranking
Diffstat (limited to 'planetwars-server/src/modules')
-rw-r--r--planetwars-server/src/modules/ranking.rs2
1 files changed, 1 insertions, 1 deletions
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