mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
d80c203c53
commit
abfa5ab8a3
@ -63,6 +63,8 @@ def human_readable(size):
|
|||||||
size = str(float(size)/divisor)
|
size = str(float(size)/divisor)
|
||||||
if size.find(".") > -1:
|
if size.find(".") > -1:
|
||||||
size = size[:size.find(".")+2]
|
size = size[:size.find(".")+2]
|
||||||
|
if size.endswith('.0'):
|
||||||
|
size = size[:-2]
|
||||||
return size + " " + suffix
|
return size + " " + suffix
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user