From 4f6233548b78f7fd6a61beb3fdd1718e67ecc49c Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 29 Mar 2020 05:47:42 -0400 Subject: [PATCH] fix memory checking issue --- src/intervals/memory.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intervals/memory.ts b/src/intervals/memory.ts index 70f08b4..6492524 100644 --- a/src/intervals/memory.ts +++ b/src/intervals/memory.ts @@ -5,7 +5,7 @@ import { RichEmbed } from '../class'; const channelID = '691824484230889546'; -export const memoryLimits = { +const memoryLimits = { TIER_1_SOFT: 200, TIER_1_HARD: 350, TIER_2_SOFT: 350, @@ -24,6 +24,7 @@ export default function memory(client: Client) { const mem = Number(await client.util.exec(`memory ${acc.username}`)) * 1000; // memory in megabytes const memoryConversion = mem / 1024 / 1024; + console.log(memoryLimits); let userLimits: { soft: number, hard: number }; if (acc.tier === 1) { userLimits = { soft: memoryLimits.TIER_1_SOFT, hard: memoryLimits.TIER_1_HARD }; @@ -32,6 +33,7 @@ export default function memory(client: Client) { } else if (acc.tier === 3) { userLimits = { soft: memoryLimits.TIER_3_SOFT, hard: memoryLimits.TIER_3_HARD }; } + console.log(userLimits); /* if the user has exceeded their soft memory limit, which is the one described in the resource limit guidelines, we'll inform staff.