mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 19:03:39 +02:00
IGN:...
This commit is contained in:
parent
5a4a030401
commit
d80c203c53
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def human_readable(size):
|
|||
divisor, suffix = 1024*1024, "MB"
|
||||
elif size < 1024*1024*1024*1024:
|
||||
divisor, suffix = 1024*1024*1024, "GB"
|
||||
size = str(size/divisor)
|
||||
size = str(float(size)/divisor)
|
||||
if size.find(".") > -1:
|
||||
size = size[:size.find(".")+2]
|
||||
return size + " " + suffix
|
||||
|
|
|
|||
Loading…
Reference in a new issue