forked from engineering/cloudservices
fixes
parent
a67cc4d595
commit
b784d91abf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue