From 1c3e7899673578620c6270f2814fdecb1d48ee83 Mon Sep 17 00:00:00 2001 From: dkhakhkhar Date: Thu, 28 Jan 2016 18:21:41 +0800 Subject: [PATCH] KYLIN-1348, fix bytes display issue for hbase --- webapp/app/js/filters/filter.js | 2 +- webapp/app/partials/cubes/cube_detail.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/app/js/filters/filter.js b/webapp/app/js/filters/filter.js index 98f7235..1b0590c 100755 --- a/webapp/app/js/filters/filter.js +++ b/webapp/app/js/filters/filter.js @@ -91,7 +91,7 @@ KylinApp } if (typeof precision === 'undefined') { - precision = 1; + precision = 3; } var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], diff --git a/webapp/app/partials/cubes/cube_detail.html b/webapp/app/partials/cubes/cube_detail.html index b10a08c..32246a8 100755 --- a/webapp/app/partials/cubes/cube_detail.html +++ b/webapp/app/partials/cubes/cube_detail.html @@ -99,14 +99,14 @@
HTable: {{table.tableName}}
-
Total Size: {{cube.totalSize | bytes:2}}
+
Total Size: {{cube.totalSize | bytes:5}}
Total Number: {{cube.hbase.length}}
-- 2.5.4 (Apple Git-61)