From b4ceed1de19947dd72e5f52e6fd4947fe28b8b97 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 3 May 2020 19:05:41 -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 bbf2b34..470a160 100644 --- a/src/intervals/memory.ts +++ b/src/intervals/memory.ts @@ -21,7 +21,7 @@ export default function memory(client: Client) { const tier: TierInterface = await client.db.Tier.findOne({ id: acc.tier }).lean().exec(); userLimits.soft = acc.ramLimitNotification; userLimits.hard = tier.resourceLimits.ram; - if (memoryConversion <= userLimits.soft) { + if ((memoryConversion <= userLimits.soft) && (acc.ramLimitNotification !== 0)) { set.delete(acc.username); } /* if the user has exceeded their soft memory limit, which is the one described in the