From 0c553035056fe605de8e73626f5629a0a17c7607 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 9 Nov 2019 23:34:19 -0500 Subject: [PATCH] fix await issue in whois --- src/commands/whois.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index d4b2982..b6e9a90 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -34,7 +34,7 @@ export default class Whois extends Command { const cpuUsage = await this.client.util.exec(`top -b -n 1 -u ${account.username} | awk 'NR>7 { sum += $9; } END { print sum; }'`); embed.addField('CPU Usage', `${cpuUsage.split('\n')[0]}%`, true); embed.addField('Memory', dataConversion(Number(await this.client.util.exec(`memory ${account.username}`))), true); - const data = await this.client.redis.get(`storage-${account.username}`) ? dataConversion(Number(this.client.redis.get(`storage-${account.username}`))) : 'N/A'; + const data = await this.client.redis.get(`storage-${account.username}`) ? dataConversion(Number(await this.client.redis.get(`storage-${account.username}`))) : 'N/A'; embed.addField('Storage', data, true); let details = ''; if (account.locked) details += 'This account is currently locked.\n';