Skip to content

Commit

Permalink
Merge 13e34d2 into 28d3a9d
Browse files Browse the repository at this point in the history
  • Loading branch information
Kehua Wu committed Oct 16, 2019
2 parents 28d3a9d + 13e34d2 commit 4138f10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/app/js/controllers/page.js
Expand Up @@ -153,6 +153,9 @@ KylinApp.controller('PageCtrl', function ($scope, $q, AccessService, $modal, $lo

// Compute data size so as to auto convert to KB/MB/GB/TB)
$scope.dataSize = function (data) {
if(!data){
return '0 KB';
}
var size;
if (data / 1024 / 1024 / 1024 / 1024 >= 1) {
size = (data / 1024 / 1024 / 1024 / 1024).toFixed(2) + ' TB';
Expand Down

0 comments on commit 4138f10

Please sign in to comment.