From ab3facdbcf831aeb104d152a55581148104ad18c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 15 Jul 2019 22:25:22 -0400 Subject: [PATCH] Changed to point of convergence to 10. This can be changed if this service gets popular. --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 62e755f..0a5b501 100644 --- a/index.js +++ b/index.js @@ -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;