From ccb7ede4fa92cf7290d0970cbace27b4eac63525 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 11 Jul 2017 11:05:19 -0400 Subject: [PATCH] storage percentage fix --- src/app/organization/organizationBillingController.js | 2 +- src/app/settings/settingsBillingController.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/organization/organizationBillingController.js b/src/app/organization/organizationBillingController.js index c45e1e4d86..e66e9f4784 100644 --- a/src/app/organization/organizationBillingController.js +++ b/src/app/organization/organizationBillingController.js @@ -128,7 +128,7 @@ currentName: org.StorageName || '0 GB' }; - $scope.storage.percentage = +($scope.storage.currentGb / $scope.storage.maxGb).toFixed(2); + $scope.storage.percentage = +(100 * ($scope.storage.currentGb / $scope.storage.maxGb)).toFixed(2); } $scope.subscription = null; diff --git a/src/app/settings/settingsBillingController.js b/src/app/settings/settingsBillingController.js index c55b75d396..cea01fcd68 100644 --- a/src/app/settings/settingsBillingController.js +++ b/src/app/settings/settingsBillingController.js @@ -95,7 +95,7 @@ currentName: billing.StorageName || '0 GB' }; - $scope.storage.percentage = +($scope.storage.currentGb / $scope.storage.maxGb).toFixed(2); + $scope.storage.percentage = +(100 * ($scope.storage.currentGb / $scope.storage.maxGb)).toFixed(2); } $scope.subscription = null;