-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible size conversion issue #17
Comments
To compare with lfs, don't use |
AWS EC2 shows their sizes as GiB. Then to use the json output I have to do conversions in any case. Will it be possible to add a switch to print out the sizes differently as an option please? |
You mean when you output as JSON ? |
In JSON I could even output the two values, there's no real cost. |
Can the switch be available for regular use and json output? I had a look at df again. I've always used df -h. Interesting that df -h and df -H both prints G or M without distinction. I'm using EC2 which uses GiB and ideally the sizes from EC2 should match the sizes from the host without needing to convert in between. I had a search on their mailing list and found this:
I mailed the group and asked if they could print GB and GiB accordingly. |
I won't personally go and have a fight with the old guys still arguing that base-2 makes sense for units... If you want to avoid ambiguity when reading the JSON, just multiply |
@Canop Will it be still be possible to update file-size to do both conventions and incorporate those choices in lfs? The info from LFS is great but as soon as the info leaves the box other processes don't use ISO. As example the technicians here would ideally share the print from LFS as it is so neat and tidy in hangouts when busy troubleshooting but then infrastructure sees different sizes in AWS causing a small bit of confusion. |
There could be a launch argument, yes, and then the label of the column would be different. |
Maybe |
That can work. |
The GNU coreutils guys seems to have decided to only print the G for ISO and Binary back when a terminal screen's real-estate was limited. I'd print the "i". |
Is this a before and after screenshot? The headers use different words between the 2 commands you ran. free vs available and used vs use. Used and Free seems correct. |
That was the "subtle change" (not completely decided): when units is "binary", picking different words so that the alignment is better (you have one more character usually with the 'i'). EDIT: This would only add confusion, reverting to const labels. |
Hi,
using LFS 1.0.0. When I compare this output to that from df and df -h the output from lfs seems wrong. total size is not 13G and the used from df is 8.5G but 9.1G on LFS.
The text was updated successfully, but these errors were encountered: