utils: Add missing "B" for pretty_size()
* Add missing unit for megabytes, should print "MB".
This commit is contained in:
parent
f850bdd848
commit
4ede2f126a
|
@ -74,7 +74,7 @@ def pretty_size(size):
|
|||
suffixes = [
|
||||
("B", 2**10),
|
||||
("kB", 2**20),
|
||||
("M", 2**30),
|
||||
("MB", 2**30),
|
||||
]
|
||||
for suf, lim in suffixes:
|
||||
if size >= lim:
|
||||
|
|
Loading…
Reference in New Issue