fix memory checking issue
parent
c5ddad81c7
commit
c4541b7ec0
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue