From b784d91abf8462e11b9ebf82d920d8b17c6fd64c Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 3 May 2020 18:23:28 -0400 Subject: [PATCH] fixes --- src/intervals/memory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);