From d80c203c53f8fafefd02924899b6e9175b2eb22e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 May 2008 17:32:34 -0700 Subject: [PATCH] IGN:... --- src/calibre/gui2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 8b462b14f5..2b24bffd72 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -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