Skip to content

Commit

Permalink
Merge pull request #5 from m0rphtail/dev
Browse files Browse the repository at this point in the history
fix some bugs
  • Loading branch information
m0rphtail authored May 18, 2021
2 parents 79a47f6 + b1ddc54 commit 3784e49
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 12 deletions.
Empty file modified .github/workflows/codeql-analysis.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified bin/arch.js
100644 → 100755
Empty file.
Empty file modified bin/cpu.js
100644 → 100755
Empty file.
Empty file modified bin/hostname.js
100644 → 100755
Empty file.
Empty file modified bin/kernel.js
100644 → 100755
Empty file.
8 changes: 1 addition & 7 deletions bin/memory.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ const os = require("os");

module.exports = () => {
const totalMemory = os.totalmem();
const freeMemory = os.freemem();
const usage =
String(
Math.round(totalMemory / (1024 * 1024) - freeMemory / (1024 * 1024)) +
" MiB / " +
Math.round(totalMemory / (1024 * 1024))
) + " MiB";
const usage = Math.round(totalMemory / (Math.pow(1024,2))/1000)+ " GB";
return `${usage}`;
};
Empty file modified bin/type.js
100644 → 100755
Empty file.
8 changes: 5 additions & 3 deletions bin/uptime.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const os = require("os");

module.exports = () => {
//TODO do better math
const uptime = String(Math.floor(os.uptime() / 60));
return `${uptime} mins`;
const full = String(Math.floor(os.uptime() / 60));
const hrs=String(Math.floor(full/60))
const mins=String(Math.floor(full % 60))

return `${hrs} hours ${mins} mins`;
};
Empty file modified docs/tool-help.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/tool.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified package.json
100644 → 100755
Empty file.

0 comments on commit 3784e49

Please sign in to comment.