Blob Blame Raw
From 8f6d5316e9d1555f8b33aeef97053f04d3903759 Mon Sep 17 00:00:00 2001
From: Denys Vlasenko <dvlasenk@redhat.com>
Date: Wed, 7 Dec 2011 18:08:06 +0100
Subject: [PATCH 7/8] abrt-action-install-debuginfo: do not use scientific
 notation for sizes

"Downloading 5.1e+02Mb, installed size: 2.1e+03Mb" looks weird...

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
---
 src/plugins/abrt-action-install-debuginfo.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/abrt-action-install-debuginfo.in b/src/plugins/abrt-action-install-debuginfo.in
index f6d0001..7c19331 100644
--- a/src/plugins/abrt-action-install-debuginfo.in
+++ b/src/plugins/abrt-action-install-debuginfo.in
@@ -288,9 +288,9 @@ class DebugInfoDownload(YumBase):
 	    print _("Can't find packages for {0} debuginfo files").format(len(not_found))
 	if verbose != 0 or total_pkgs != 0:
 	    print _("Packages to download: {0}").format(total_pkgs)
-	    question = _("Downloading {0:.2}Mb, installed size: {1:.2}Mb. Continue?").format(
-	                 todownload_size / (1024**2),
-	                 installed_size / (1024**2)
+	    question = _("Downloading {0:.2f}Mb, installed size: {1:.2f}Mb. Continue?").format(
+	                 todownload_size / (1024*1024),
+	                 installed_size / (1024*1024)
 	                )
 	    if noninteractive == False and not reportclient.ask_yes_no(question):
 	        print _("Download cancelled by user")
-- 
1.7.7.3