From 3964c77a40c2f18cd3c086a75d7eff97379382ca Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 10 Nov 2019 00:03:35 -0500 Subject: [PATCH] memory is wrong, fix --- 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 53297d1..0799ca3 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -33,7 +33,7 @@ export default class Whois extends Command { embed.addField('Created At', moment(account.createdAt).format('dddd, MMMM Do YYYY, h:mm:ss A'), true); 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] ? `${cpuUsage.split('\n')[0]}%` : '0%', true); - embed.addField('Memory', dataConversion(Number(await this.client.util.exec(`memory ${account.username}`))), true); + embed.addField('Memory', dataConversion(Number(await this.client.util.exec(`memory ${account.username}`)) * 1000), true); 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 = '';