mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Changed to point of convergence to 10. This can be changed if this service gets popular.
This commit is contained in:
4
index.js
4
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user