This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit f2f8591e24086f89af9dba418b28434800235e8b
Author: Kehua Wu <[email protected]>
AuthorDate: Wed Oct 16 14:39:55 2019 +0800

    KYLIN-4195 The cube size is 'NaN KB' after purging one cube.
---
 webapp/app/js/controllers/page.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/webapp/app/js/controllers/page.js 
b/webapp/app/js/controllers/page.js
index 5416013..e79de84 100644
--- a/webapp/app/js/controllers/page.js
+++ b/webapp/app/js/controllers/page.js
@@ -152,6 +152,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';

Reply via email to