Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Fix math functions in sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Sep 30, 2018
1 parent 285c044 commit 4c8b044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/sysinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports.run = async (client, message) => {

const freegbU = os.freemem / 1000000000;
const freegbR = Math.round(freegbU);
const freegbF = gbR - freegbR;

const hours = os.uptime / 1440;
const sysuptime = Math.floor(hours);
Expand Down Expand Up @@ -42,7 +43,7 @@ exports.run = async (client, message) => {
embed.addField('CPU', `${os.cpus()[0].model}`, true);
embed.addField('CPU Usage', `${process.cpuUsage().user}ms clock`, true);
embed.addField('Architecture', `${os.arch}`, true);
embed.addField('Memory', `${freegbR}GB/${gbR}GB`, true);
embed.addField('Memory', `${freegbF}GB/${gbR}GB`, true);
embed.addField('Directory', `${os.homedir()}`, true);
embed.addField('Process File', `${process.mainModule.filename}` ,true);
embed.addField('System Uptime', `${sysuptimeDays} days | ${sysuptime} total hours`, true);
Expand Down

0 comments on commit 4c8b044

Please sign in to comment.