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

View File

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