rename disks to system

This commit is contained in:
Girish Ramakrishnan
2019-11-21 12:58:06 -08:00
parent 42fe84152a
commit a98551f99c
4 changed files with 19 additions and 10 deletions
+3 -3
View File
@@ -24,11 +24,11 @@ let assert = require('assert'),
BoxError = require('../boxerror.js'),
cloudron = require('../cloudron.js'),
custom = require('../custom.js'),
disks = require('../disks.js'),
externalLdap = require('../externalldap.js'),
HttpError = require('connect-lastmile').HttpError,
HttpSuccess = require('connect-lastmile').HttpSuccess,
sysinfo = require('../sysinfo.js'),
system = require('../system.js'),
updater = require('../updater.js'),
updateChecker = require('../updatechecker.js');
@@ -56,7 +56,7 @@ function getConfig(req, res, next) {
}
function getDisks(req, res, next) {
disks.getDisks(function (error, result) {
system.getDisks(function (error, result) {
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, result));
@@ -64,7 +64,7 @@ function getDisks(req, res, next) {
}
function getMemory(req, res, next) {
disks.getMemory(function (error, result) {
system.getMemory(function (error, result) {
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, result));