]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Handle Elos properly when players have big alivetimes.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 9 Nov 2012 04:42:29 +0000 (23:42 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 9 Nov 2012 04:42:29 +0000 (23:42 -0500)
commit6f1725f94b09169db01acbd2b4f709a9e7d51e98
tree21dd0b54588d717ee4927c20a9584692639ce2b5
parent47985fe92d08cbade405c5297eace149805b75bf
Handle Elos properly when players have big alivetimes.

Due to a bug, the alivetimes for players also include time
spent in warmup. Since elo uses score per second, the
skewed alivetime made players who actually lost look like
they won under certain circumstances (like when their
opponent spent a very long time in warmup).

This change puts a ceiling on the alivetime used by Elo
by limiting the alivetime to be at most the game's
duration.
xonstat/elo.py