From 9c3fd90e6e6d82639cc035395b455a05add6433e Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 2 May 2017 09:28:37 -0400 Subject: [PATCH] Subtract the ping scorefactor. --- xonstat/elo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/elo.py b/xonstat/elo.py index 60e7505..0b91752 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 -- 2.39.2