1
0
Fork 0

fix memory checking issue

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

View File

@ -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;