hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [3/4] hadoop git commit: HDFS-13844. Fix the fmt_bytes function in the dfs-dust.js. Contributed by yanghuafeng.
Date Mon, 17 Sep 2018 21:41:53 GMT
HDFS-13844. Fix the fmt_bytes function in the dfs-dust.js. Contributed by yanghuafeng.

(cherry picked from commit a9c1c55cafc0338bb35d2991f217d4157463f1d3)


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

Branch: refs/heads/branch-2
Commit: 9bd26161382630e585d5019eb3532822c6cb8773
Parents: 1e61f38
Author: Inigo Goiri <inigoiri@apache.org>
Authored: Mon Sep 17 14:37:25 2018 -0700
Committer: Inigo Goiri <inigoiri@apache.org>
Committed: Mon Sep 17 14:40:00 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/9bd26161/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 1f37d21..2c45bf2 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


Mime
View raw message