Fix prettyDiskSize to use 1000 instead of 1024

This commit is contained in:
Girish Ramakrishnan
2020-04-01 16:26:47 -07:00
parent 7d52be6e99
commit b93b1a6eec
3 changed files with 6 additions and 5 deletions

View File

@@ -175,7 +175,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
});
});
$scope.disks = result.disks;
$scope.disks = result.disks; // [ { filesystem, type, size, used, available, capacity, mountpoint }]
// lazy fetch graphite data
$scope.disks.forEach(function (disk) {
@@ -221,7 +221,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
usageOther -= tmp;
});
// add content container for other non tracked data
// add content container for other non tracked data.
disk.contains.push({
label: 'Ubuntu',
id: 'other',