Changed filesizeformat to use all SI prefixes. #16

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant
@ghost

ghost commented Feb 17, 2011

The original filesizeformat was broken: the largest prefix was for base ** 3 (GB/GiB) and the prefix for "kilo" was wrong (the 1000 prefix should be "kB" with a lowercase "k", only the binary prefix has a capital "K"). This should also future-proof it until we have to worry about what's larger than a yottabyte (the SI hasn't decided yet, it seems).

Alan Plum Fixed filesizeformat filter. It should now conform to the official SI…
… prefixes and use the correct prefixes for sizes greater than base ** 4.
2c02976
Owner

mitsuhiko commented Feb 17, 2011

Thanks.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment