forked from engineering/cloudservices
change mark issues
parent
d7a19e1b4e
commit
990cb8be23
|
@ -31,8 +31,9 @@ export default class Whois extends Command {
|
||||||
embed.addField('Email Address', account.emailAddress, true);
|
embed.addField('Email Address', account.emailAddress, true);
|
||||||
embed.addField('Created By', `<@${this.client.users.get(account.createdBy).id}>`, true);
|
embed.addField('Created By', `<@${this.client.users.get(account.createdBy).id}>`, true);
|
||||||
embed.addField('Created At', moment(account.createdAt).format('dddd, MMMM Do YYYY, h:mm:ss A'), true);
|
embed.addField('Created At', moment(account.createdAt).format('dddd, MMMM Do YYYY, h:mm:ss A'), true);
|
||||||
embed.addField('CPU Usage', `${await this.client.util.exec(`top -b -n 1 -u ${account.username} | awk 'NR>7 { sum += $9; } END { print sum; }'`)}%`, 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('Memory', dataConversion(Number(this.client.util.exec(`memory ${account.username}`))), true);
|
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(this.client.redis.get(`storage-${account.username}`))) : 'N/A';
|
||||||
embed.addField('Storage', data, true);
|
embed.addField('Storage', data, true);
|
||||||
let details = '';
|
let details = '';
|
||||||
|
|
Loading…
Reference in New Issue