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