From 0b08700140e348a63005918d5e7c6d50817cb83a Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 29 Mar 2020 05:37:14 -0400 Subject: [PATCH] fix memory checking issue --- src/intervals/memory.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intervals/memory.ts b/src/intervals/memory.ts index 334d9b6..fef3803 100644 --- a/src/intervals/memory.ts +++ b/src/intervals/memory.ts @@ -19,7 +19,8 @@ export default function memory(client: Client) { const accounts = await client.db.Account.find(); console.log(accounts); for (const acc of accounts) { - console.log(acc); + console.log(acc.username); + console.log(acc.root); if (acc.root === true) return; // memory in bytes const mem = Number(await client.util.exec(`memory ${acc.username}`)) * 1000;