Skip to content

Commit 824270f

Browse files
committed
properly count active players for WHR
1 parent f7640db commit 824270f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ZkData/Ef/WHR/Ranks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static float GetRankProgress(Account acc)
4343
var rankCeil = bracket.UpperEloLimit + stdev;
4444
var rankFloor = bracket.LowerEloLimit - stdev;
4545
bestProgress = Math.Max(bestProgress, Math.Min(1, (rating.RealElo - rankFloor) / (rankCeil - rankFloor)));
46-
Trace.TraceInformation(acc.Name + ": bracket(" + bracket.LowerEloLimit + ", " + bracket.UpperEloLimit + ") requirements (" + rankFloor + ", " + rankCeil + ") current: " + rating.RealElo + " -> progress: " + bestProgress);
46+
//Trace.TraceInformation(acc.Name + ": bracket(" + bracket.LowerEloLimit + ", " + bracket.UpperEloLimit + ") requirements (" + rankFloor + ", " + rankCeil + ") current: " + rating.RealElo + " -> progress: " + bestProgress);
4747
}
4848
if (!isActive) return 0.001f;
4949
return bestProgress;

ZkData/Ef/WHR/WholeHistoryRating.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ private void UpdateRankings(IEnumerable<Player> players)
446446
playerRatings[pair.Value].ApplyLadderUpdate(int.MaxValue, 1, currentDay);
447447
}
448448
}
449-
activePlayers = rank;
449+
this.activePlayers = rank;
450450
newPercentileBrackets.Add(0);
451451
PercentileBrackets = newPercentileBrackets.Select(x=>x).Reverse().ToArray();
452452
topPlayers = newTopPlayers;

0 commit comments

Comments
 (0)