merge-requests/4/head
Matthew 2020-05-03 19:05:41 -04:00
parent eabea72f09
commit b4ceed1de1
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -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