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

Xavier Seneque commented on IO-373:
-----------------------------------

I'm proposing either to replace or supplement this method by something that 
emulates the output of "ls -lh" for the units. I'm attaching a patch with new 
function byteCountToHumanReadableGnu with unit tests. It is consistent with my 
tests of "ls -lh" on Redhat Linux. I think that's a format that a lot of people 
are used to.

> FileUtils.byteCountToDisplaySize improvement/rounding issues
> ------------------------------------------------------------
>
>                 Key: IO-373
>                 URL: https://issues.apache.org/jira/browse/IO-373
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.4
>            Reporter: Mark
>            Priority: Minor
>
> Issue IO-226 is not fixed but closed.
> ?
> Here is my solution that also support a user-defined precision in terms of a 
> maximum length of the digits part.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to