mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-22 06:57:32 +01:00
Fix max stack exceeded
This commit is contained in:
parent
d3e68c22f3
commit
d2afb82fdc
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@
|
||||||
const sorted = [];
|
const sorted = [];
|
||||||
for (const item of data) {
|
for (const item of data) {
|
||||||
total += item[1];
|
total += item[1];
|
||||||
sorted.push(...new Array(item[1]).fill(item[0]));
|
sorted.concat(new Array(item[1]).fill(item[0]));
|
||||||
}
|
}
|
||||||
medianWinRateOff[rarity] = (sorted[Math.round(sorted.length / 2)] * 100).toFixed(2);
|
medianWinRateOff[rarity] = (sorted[Math.round(sorted.length / 2)] * 100).toFixed(2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue