Skip to content
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

1k = 1000 #12

Open
szabgab opened this issue Sep 9, 2013 · 2 comments
Open

1k = 1000 #12

szabgab opened this issue Sep 9, 2013 · 2 comments
Labels

Comments

@szabgab
Copy link

szabgab commented Sep 9, 2013

I don't see any explanation what values can I use for size, but it seems 1k means 1000 which was not obvious to me. (I thought it would be 1024)

@dagolden
Copy link
Collaborator

It's documented this way:

All of the stat elements have a method that takes a single argument in a form understood by Number::Compare.

Maybe I need to give some examples or explain it the way Number::Compare does:

The target value may use magnitudes of kilobytes (k, ki), megabytes (m, mi), or gigabytes (g, gi). Those suffixed with an i use the appropriate 2**n version in accordance with the IEC standard: http://physics.nist.gov/cuu/Units/binary.html

@szabgab
Copy link
Author

szabgab commented Sep 10, 2013

Oh I did not notice that part in the documentation. (I was looking for a section called "Size rules".) Thanks for the links.

@xdg xdg added the wishlist label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants