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 0 additions and 1 deletions
Showing only changes of commit ee896da2aa - Show all commits

1
EUS.js
View File

@ -280,7 +280,6 @@ function handleAPI(req, res) {
jsonaa["space"]["usage"]["mb"] = sizeOfFolder;
sizeOfFolder = (size / 1024 / 1024 / 1024);
jsonaa["space"]["usage"]["gb"] = sizeOfFolder;
sizeOfFolder = (size / 1024 / 1024 / 1024).toFixed(2);
jsonaa["space"]["usage"]["string"] = spaceToLowest(size, true);
// Send the json to the requesting client
d = new Date(); endTime = d.getTime();