1
0
Fork 0

fix memory checking issue

refactor/models
Matthew 2020-03-29 05:59:57 -04:00
parent c5ddad81c7
commit c4541b7ec0
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 0 additions and 2 deletions

View File

@ -24,7 +24,6 @@ export default function memory(client: Client) {
const mem = Number(await client.util.exec(`memory ${acc.username}`)) * 1000; const mem = Number(await client.util.exec(`memory ${acc.username}`)) * 1000;
// memory in megabytes // memory in megabytes
const memoryConversion = mem / 1024 / 1024; const memoryConversion = mem / 1024 / 1024;
console.log(memoryLimits);
const userLimits: { soft?: number, hard?: number } = {}; const userLimits: { soft?: number, hard?: number } = {};
switch (acc.tier) { switch (acc.tier) {
case 1: case 1:
@ -42,7 +41,6 @@ export default function memory(client: Client) {
default: default:
break; break;
} }
console.log(userLimits);
/* 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
resource limit guidelines, we'll inform staff. resource limit guidelines, we'll inform staff.