From b5e898721d64e32065d294478f6d0898867e7105 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 8 Aug 2007 22:00:23 +0000 Subject: [PATCH] fix last --- src/common.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/common.py b/src/common.py index b0065f781..dbdf830ab 100644 --- a/src/common.py +++ b/src/common.py @@ -69,13 +69,7 @@ def fsize(fsize_b): if fsize_mb < 1000: return "%.1f %s" % (fsize_mb, _("MiB")) fsize_gb = float (fsize_mb / 1024.0) - if fsize_gb < 1000: - return "%.1f %s" % (fsize_gb, _("GiB")) - fsize_tb = float (fsize_gb / 1024.0) - if fsize_tb < 1000: - return "%.1f %s" % (fsize_tb, _("TiB")) - fsize_pb = float (fsize_tb / 1024.0) - return "%.1f %s" % (fsize_pb, _("PiB")) + return "%.1f %s" % (fsize_gb, _("GiB")) # Returns a formatted string representing a percentage def fpcnt(dec):