]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Nope, it was right the first time.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 2 May 2017 14:45:10 +0000 (10:45 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 2 May 2017 14:45:10 +0000 (10:45 -0400)
xonstat/elo.py

index 0b9175276bf7c719f6bc1685bea8d245dc9d2aa8..60e7505d1d65135d2cd53d4032b804da01743c8c 100644 (file)
@@ -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