You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "yanghuafeng (JIRA)" <ji...@apache.org> on 2018/08/22 07:02:00 UTC

[jira] [Created] (HDFS-13844) Refactor the fmt_bytes function in the dfs-dust.js.

yanghuafeng created HDFS-13844:
----------------------------------

             Summary: Refactor the fmt_bytes function in the dfs-dust.js.
                 Key: HDFS-13844
                 URL: https://issues.apache.org/jira/browse/HDFS-13844
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
    Affects Versions: 3.1.0, 3.0.0, 2.7.2, 2.2.0, 1.2.0
            Reporter: yanghuafeng
            Assignee: yanghuafeng


The namenode WebUI cannot display the capacity with correct units. I have found that the function fmt_bytes in the dfs-dust.js missed the EB unit. This will lead to undefined unit in the ui.

And although the unit ZB is very large, we should take the unit overflow into consideration. Supposing the last unit is GB, we should get the 8192 GB with the total capacity 8T rather than 8 undefined.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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