fixes
parent
eabea72f09
commit
b4ceed1de1
|
@ -21,7 +21,7 @@ export default function memory(client: Client) {
|
||||||
const tier: TierInterface = await client.db.Tier.findOne({ id: acc.tier }).lean().exec();
|
const tier: TierInterface = await client.db.Tier.findOne({ id: acc.tier }).lean().exec();
|
||||||
userLimits.soft = acc.ramLimitNotification;
|
userLimits.soft = acc.ramLimitNotification;
|
||||||
userLimits.hard = tier.resourceLimits.ram;
|
userLimits.hard = tier.resourceLimits.ram;
|
||||||
if (memoryConversion <= userLimits.soft) {
|
if ((memoryConversion <= userLimits.soft) && (acc.ramLimitNotification !== 0)) {
|
||||||
set.delete(acc.username);
|
set.delete(acc.username);
|
||||||
}
|
}
|
||||||
/* if the user has exceeded their soft memory limit, which is the one described in the
|
/* if the user has exceeded their soft memory limit, which is the one described in the
|
||||||
|
|
Loading…
Reference in New Issue