Skip to content
Snippets Groups Projects
Commit d6a079e8 authored by timothycarambat's avatar timothycarambat
Browse files

fix mount path

parent ac042d25
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ function byteToGigaByte(n) { ...@@ -14,7 +14,7 @@ function byteToGigaByte(n) {
async function getDiskStorage() { async function getDiskStorage() {
try { try {
const checkDiskSpace = require("check-disk-space").default; const checkDiskSpace = require("check-disk-space").default;
const { free, size } = await checkDiskSpace("/dev/sda1"); const { free, size } = await checkDiskSpace("/dev/xvda");
return { return {
current: Math.floor(byteToGigaByte(free)), current: Math.floor(byteToGigaByte(free)),
capacity: Math.floor(byteToGigaByte(size)), capacity: Math.floor(byteToGigaByte(size)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment