datasize
datasize copied to clipboard
formatting 'B' from large 'MB' is wrong
'{0:a}'.format(DataSize('14796MB'))
>>> '13.779849GiB'
'{0:B}'.format(DataSize('14796MB'))
>>> '14796000000EB'
should look more like
'{0:B}'.format(DataSize('14796MB'))
>>> '14796000000B'
- add this to test coverage
- fix