[ 
https://issues.apache.org/jira/browse/HDFS-14377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796399#comment-16796399
 ] 

Danny Becker edited comment on HDFS-14377 at 3/19/19 6:34 PM:
--------------------------------------------------------------

I would prefer using the SI units here (Kilo, Mega, Giga, etc.) since they are 
easier to convert to higher orders since 1.5 TB = 1500 GB while 1.5 TiB = 1536 
GiB. I could keep the units as they are in the patch or change them to SI units 
and change the divisor from 1024 to 1000. Either course of action makes sense 
to me. I don't think we need to extend this change to other areas since this is 
a change to user interface and can be seen by less experienced users, so 
clearer and accurate units here are more important.

I agree with [~anu] that we should not go into the CLI or other areas with this 
change.


was (Author: dannytbecker):
I would prefer using the SI units here (Kilo, Mega, Giga, etc.) since they are 
easier to convert to higher orders since 1.5 TB = 1500 GB while 1.5 TiB = 1536 
GiB. I could keep the units as they are in the patch or change them to SI units 
and change the divisor from 1024 to 1000. Either course of action makes sense 
to me. I don't think we need to extend this change to other areas since this is 
a change to user interface and can be seen by less experienced users, so 
clearer and accurate units here are more important. I agree with [~anu] that we 
should not go into the CLI or other areas with this change.

> Incorrect unit abbreviations shown for fmt_bytes
> ------------------------------------------------
>
>                 Key: HDFS-14377
>                 URL: https://issues.apache.org/jira/browse/HDFS-14377
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Danny Becker
>            Assignee: Danny Becker
>            Priority: Trivial
>         Attachments: HDFS-14377.000.patch
>
>
> The function fmt_bytes show the abbreviations for Terabyte, Petabyte, etc. 
> the standard metric system units for data storage units. The function however 
> divides by a factor of 1024, which is the factor used for Pebibyte, Tebibyte, 
> etc. Change the abbreviations from TB, PB, etc to TiB, PiB, etc.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to