You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2020/02/06 07:33:46 UTC

[kylin] 07/12: KYLIN-4195 The cube size is 'NaN KB' after purging one cube.

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 <wu...@zte.com.cn>
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';