You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by in...@apache.org on 2018/09/17 21:42:08 UTC

hadoop git commit: HDFS-13844. Fix the fmt_bytes function in the dfs-dust.js. Contributed by yanghuafeng.

Repository: hadoop
Updated Branches:
  refs/heads/trunk 23a6137a4 -> d1541932d


HDFS-13844. Fix the fmt_bytes function in the dfs-dust.js. Contributed by yanghuafeng.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d1541932
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d1541932
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d1541932

Branch: refs/heads/trunk
Commit: d1541932dbf2efd09da251b23c8825ce97f9c86c
Parents: 23a6137
Author: Inigo Goiri <in...@apache.org>
Authored: Mon Sep 17 14:37:25 2018 -0700
Committer: Inigo Goiri <in...@apache.org>
Committed: Mon Sep 17 14:42:03 2018 -0700

----------------------------------------------------------------------
 .../hadoop-hdfs/src/main/webapps/static/dfs-dust.js              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d1541932/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dfs-dust.js
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dfs-dust.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dfs-dust.js
index a572282..316a994 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dfs-dust.js
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dfs-dust.js
@@ -20,7 +20,7 @@
 
   var filters = {
     'fmt_bytes': function (v) {
-      var UNITS = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'ZB'];
+      var UNITS = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB'];
       var prev = 0, i = 0;
       while (Math.floor(v) > 0 && i < UNITS.length) {
         prev = v;
@@ -28,7 +28,7 @@
         i += 1;
       }
 
-      if (i > 0 && i < UNITS.length) {
+      if (i > 0) {
         v = prev;
         i -= 1;
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org