From: Ant Zucaro Date: Tue, 2 May 2017 14:45:10 +0000 (-0400) Subject: Nope, it was right the first time. X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=f83f79b272b63fa39d28e100049647a6e5590872;ds=sidebyside Nope, it was right the first time. --- diff --git a/xonstat/elo.py b/xonstat/elo.py index 0b91752..60e7505 100644 --- a/xonstat/elo.py +++ b/xonstat/elo.py @@ -221,7 +221,7 @@ class EloProcessor: # adjust the elo prediction according to ping ping_ratio = self.pingfactor(pi, pj) scorefactor_ping = ep.latency_trend_factor * (0.5 - ping_ratio) - scorefactor_elo_adjusted = max(0.0, min(1.0, scorefactor_elo - scorefactor_ping)) + scorefactor_elo_adjusted = max(0.0, min(1.0, scorefactor_elo + scorefactor_ping)) # initial adjustment values, which we may modify with additional rules adjustmenti = scorefactor_real - scorefactor_elo_adjusted