瀏覽代碼

AMBARI-1462. PB (petabytes) is shown as undefined. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1448921 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年之前
父節點
當前提交
60466790d6
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/utils/helper.js

+ 2 - 0
CHANGES.txt

@@ -342,6 +342,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1462. PB (petabytes) is shown as "undefined". (yusaku)
+
  AMBARI-1455. Setting App.testMode=true, alwaysGoToInstaller=true does not
  render the Dashboard properly upon login. (yusaku)
 

+ 1 - 1
ambari-web/app/utils/helper.js

@@ -132,7 +132,7 @@ Number.prototype.bytesToSize = function (precision, parseType/* = 'parseInt' */)
   }
 
   var value = this;
-  var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
+  var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB'];
   var posttxt = 0;
   if (this == 0) return 'n/a';
   while (value >= 1024) {