fix: only allow d120 tanks

This commit is contained in:
TrèsAbhi committed 2024-07-13 14:23:31 -05:00
1 parent c6028b9868
commit 887d9b8017
1 file changed
+5 -2
+5 -2
View File
@@ -130,13 +130,16 @@ times(THREADS, async () => {
async function postWork() {
console.log(
`Generating statistics based off ${samples.d_120.toLocaleString()} players (${samples.total.toLocaleString()} checked in total) and ${tankIds.length} tanks...`,
`Generating statistics based on ${samples.d_120.toLocaleString()} players (${samples.total.toLocaleString()} checked in total) and ${tankIds.length} tanks...`,
);
const averages: Record<number, AverageDefinitionsEntry> = {};
tankIds.forEach((id) => {
const tanks = tanksSorted[id];
const tanksSortedEntry = tanksSorted[id];
const tanks = tanksSortedEntry.filter(
(tank) => Date.now() - tank.last_battle_time * 1000 <= MAX_ACTIVITY_TIME,
);
const entry: AverageDefinitionsEntrySubPartial = {
mu: {},
sigma: {},