# HG changeset patch # User Martin Rexa # Date 1263398248 -3600 # Node ID 2e300319c9a88a302e72b3f573464d5851b103d5 # Parent 17893fd11f6e5b7cd5201b3c66c228cce6b73143 More info about games covered in the list diff -r 17893fd11f6e -r 2e300319c9a8 statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java Wed Jan 13 16:57:00 2010 +0100 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java Wed Jan 13 16:57:28 2010 +0100 @@ -52,7 +52,8 @@ Map players; Map playerGames; - long modified = 0; + long firstGame = 0; + long lastGame = 0; boolean originalList; @@ -65,7 +66,6 @@ public EloList(EloList src){ this.players = new HashMap(src.players); this.playerGames = new HashMap(src.playerGames); - this.modified = src.modified; originalList = false; } @@ -85,7 +85,9 @@ } public EloList putResult(String winner, String looser, long modified){ - this.modified = modified; + this.lastGame = modified; + if(this.firstGame == 0) + this.firstGame = modified; double wElo = getElo(winner); double lElo = getElo(looser);