fixes
parent
a67cc4d595
commit
b784d91abf
|
@ -31,7 +31,7 @@ export default function memory(client: Client) {
|
||||||
const memoryConversion = mem / 1024 / 1024;
|
const memoryConversion = mem / 1024 / 1024;
|
||||||
const userLimits: { soft?: number, hard?: number } = {};
|
const userLimits: { soft?: number, hard?: number } = {};
|
||||||
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 = tier.resourceLimits.ram - 50;
|
userLimits.soft = acc.ramLimitNotification;
|
||||||
userLimits.hard = tier.resourceLimits.ram + 10;
|
userLimits.hard = tier.resourceLimits.ram + 10;
|
||||||
if (memoryConversion <= userLimits.soft) {
|
if (memoryConversion <= userLimits.soft) {
|
||||||
set.delete(acc.username);
|
set.delete(acc.username);
|
||||||
|
|
Loading…
Reference in New Issue