Skip to content

Commit

Permalink
reduce mmr estimate matches
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed May 3, 2016
1 parent d371373 commit a9cb352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svc/cacher.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ function updateMatchRating(match, cb)
{
if (player.account_id && player.account_id !== constants.anonymous_account_id)
{
//push into list, limit to 50 elements
//push into list, limit elements
redis.lpush('mmr_estimates:' + player.account_id, avg);
redis.ltrim('mmr_estimates:' + player.account_id, 0, 49);
redis.ltrim('mmr_estimates:' + player.account_id, 0, 24);
}
});
cb();
Expand Down

0 comments on commit a9cb352

Please sign in to comment.