Add total disk space to space api #12

Merged
tgpholly merged 6 commits from total-disk-space into master 2020-07-09 10:54:10 +01:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 2ffaa4aacc - Show all commits

1
EUS.js
View File

@ -281,6 +281,7 @@ function handleAPI(req, res) {
sizeOfFolder = (size / 1024 / 1024 / 1024);
jsonaa["space"]["usage"]["gb"] = sizeOfFolder;
jsonaa["space"]["usage"]["string"] = spaceToLowest(size, true);
// Get total disk space
diskUsage.check(__dirname, (err, data) => {
if (err) throw err;
jsonaa["space"]["total"] = {