Changed to point of convergence to 10. This can be changed if this service gets popular.

This commit is contained in:
Ajay Ramachandran
2019-07-15 22:25:22 -04:00
parent 9ab902dc36
commit ab3facdbcf

View File

@@ -226,7 +226,9 @@ function getVoteOrganisedSponsorTimes(sponsorTimes, votes, UUIDs) {
let sqrtVotesList = [];
let totalSqrtVotes = 0;
for (let j = 0; j < similarSponsorsGroups[i].length; j++) {
let sqrtVote = Math.sqrt(votes[similarSponsorsGroups[i][j]]);
//multiplying by 10 makes the 10 votes the point where it the votes start not mattering as much
//this can be changed if this system increases in popularity.
let sqrtVote = Math.sqrt(votes[similarSponsorsGroups[i][j]] * 10);
sqrtVotesList.push(sqrtVote)
totalSqrtVotes += sqrtVote;