diff --git a/src/js/index.js b/src/js/index.js
index 52ce12e0e..1c5d0200c 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -295,11 +295,12 @@ app.filter('prettyMailSize', function () {
return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i]; };
});
+// df -H style (si) output
app.filter('prettyDiskSize', function () {
return function (size) {
if (!size) return 'Not available yet';
- var i = Math.floor(Math.log(size) / Math.log(1024));
- return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i]; };
+ var i = Math.floor(Math.log(size) / Math.log(1000));
+ return (size / Math.pow(1000, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i]; };
});
app.filter('installationActive', function () {
diff --git a/src/views/system.html b/src/views/system.html
index 00a228554..1fc5e8691 100644
--- a/src/views/system.html
+++ b/src/views/system.html
@@ -78,7 +78,7 @@
-
{{ disk.filesystem }} mounted at {{ disk.mountpoint }} {{ disk.available | prettyDiskSize }} of {{ disk.size | prettyDiskSize }} still available
+
{{ disk.filesystem }} mounted at {{ disk.mountpoint }} {{ disk.available | prettyDiskSize }} of {{ disk.size | prettyDiskSize }} available
diff --git a/src/views/system.js b/src/views/system.js
index 9a969cef6..74abac110 100644
--- a/src/views/system.js
+++ b/src/views/system.js
@@ -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',