fix memory checking issue
parent
271cfe1959
commit
0b08700140
|
@ -19,7 +19,8 @@ export default function memory(client: Client) {
|
||||||
const accounts = await client.db.Account.find();
|
const accounts = await client.db.Account.find();
|
||||||
console.log(accounts);
|
console.log(accounts);
|
||||||
for (const acc of accounts) {
|
for (const acc of accounts) {
|
||||||
console.log(acc);
|
console.log(acc.username);
|
||||||
|
console.log(acc.root);
|
||||||
if (acc.root === true) return;
|
if (acc.root === true) return;
|
||||||
// memory in bytes
|
// memory in bytes
|
||||||
const mem = Number(await client.util.exec(`memory ${acc.username}`)) * 1000;
|
const mem = Number(await client.util.exec(`memory ${acc.username}`)) * 1000;
|
||||||
|
|
Loading…
Reference in New Issue