This commit is contained in:
parent
412c07a304
commit
2835f0713e
@ -206,7 +206,9 @@ export function getAveragePp(playerId: string, limit: number = 20) {
|
||||
.sort((a, b) => b - a)
|
||||
.slice(0, limit);
|
||||
|
||||
return getTotalPpFromSortedPps(rankedScorePps, 0) / limit;
|
||||
return (
|
||||
rankedScorePps.reduce((cum, pp) => cum + pp, 0) / rankedScorePps.length
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user