diff --git a/src/intervals/memory.ts b/src/intervals/memory.ts index d80685a..f0367b7 100644 --- a/src/intervals/memory.ts +++ b/src/intervals/memory.ts @@ -31,7 +31,7 @@ export default function memory(client: Client) { const memoryConversion = mem / 1024 / 1024; const userLimits: { soft?: number, hard?: number } = {}; const tier: TierInterface = await client.db.Tier.findOne({ id: acc.tier }).lean().exec(); - userLimits.soft = tier.resourceLimits.ram - 50; + userLimits.soft = acc.ramLimitNotification; userLimits.hard = tier.resourceLimits.ram + 10; if (memoryConversion <= userLimits.soft) { set.delete(acc.username);