ptahproject/ptah — Issue #100: size format not correct
Author: runyaga
Created: 2011-12-13 21:10:49+00:00
State: open

_size_types = {
'b': (1.0, 'B'),
'k': (1024.0, 'Kb'),
'm': (1048576.0, 'Mb'),
}

Mb means megabit not megabyte.
The formatters we should have:

B, KB, MB, GB, TB
if you want to add Kb, Mb, Gb, Tb
that is fine as well. But 1024 KB is 1024 Bytes