From 32dda719e4451be1e463d70753197c35654438f0 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 29 Dec 2023 02:43:04 +1100 Subject: [PATCH] Increase PD capacity to 1920 from 256 --- src/models/MPServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/MPServer.ts b/src/models/MPServer.ts index cf57e0f..d19ec8b 100644 --- a/src/models/MPServer.ts +++ b/src/models/MPServer.ts @@ -98,7 +98,7 @@ export class MPServerSvc { const findServerByName = await this.model.findOne({where: {serverName: serverName}}); if (findServerByName) { let PD = findServerByName.dataValues.playerData; - if (PD.length > 256) PD = []; + if (PD.length > 1920) PD = []; //Selfnote: 86400/45 = 1920, where 86400 is seconds in a day and 45 is the MPModule's refresh interval. PD.push(playerCount); const updatePD = await this.model.update({playerData: PD}, {where: {serverName: serverName}}); if (updatePD) true;