From abfa5ab8a37b6bb3bacda2070ed022d520c13e4e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 May 2008 17:35:39 -0700 Subject: [PATCH] IGN:... --- src/calibre/gui2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 2b24bffd72..0ed0484bca 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -63,6 +63,8 @@ def human_readable(size): size = str(float(size)/divisor) if size.find(".") > -1: size = size[:size.find(".")+2] + if size.endswith('.0'): + size = size[:-2] return size + " " + suffix