Jiri f00c7c
From 8f6d5316e9d1555f8b33aeef97053f04d3903759 Mon Sep 17 00:00:00 2001
Jiri f00c7c
From: Denys Vlasenko <dvlasenk@redhat.com>
Jiri f00c7c
Date: Wed, 7 Dec 2011 18:08:06 +0100
Jiri f00c7c
Subject: [PATCH 7/8] abrt-action-install-debuginfo: do not use scientific
Jiri f00c7c
 notation for sizes
Jiri f00c7c
Jiri f00c7c
"Downloading 5.1e+02Mb, installed size: 2.1e+03Mb" looks weird...
Jiri f00c7c
Jiri f00c7c
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Jiri f00c7c
---
Jiri f00c7c
 src/plugins/abrt-action-install-debuginfo.in |    6 +++---
Jiri f00c7c
 1 files changed, 3 insertions(+), 3 deletions(-)
Jiri f00c7c
Jiri f00c7c
diff --git a/src/plugins/abrt-action-install-debuginfo.in b/src/plugins/abrt-action-install-debuginfo.in
Jiri f00c7c
index f6d0001..7c19331 100644
Jiri f00c7c
--- a/src/plugins/abrt-action-install-debuginfo.in
Jiri f00c7c
+++ b/src/plugins/abrt-action-install-debuginfo.in
Jiri f00c7c
@@ -288,9 +288,9 @@ class DebugInfoDownload(YumBase):
Jiri f00c7c
 	    print _("Can't find packages for {0} debuginfo files").format(len(not_found))
Jiri f00c7c
 	if verbose != 0 or total_pkgs != 0:
Jiri f00c7c
 	    print _("Packages to download: {0}").format(total_pkgs)
Jiri f00c7c
-	    question = _("Downloading {0:.2}Mb, installed size: {1:.2}Mb. Continue?").format(
Jiri f00c7c
-	                 todownload_size / (1024**2),
Jiri f00c7c
-	                 installed_size / (1024**2)
Jiri f00c7c
+	    question = _("Downloading {0:.2f}Mb, installed size: {1:.2f}Mb. Continue?").format(
Jiri f00c7c
+	                 todownload_size / (1024*1024),
Jiri f00c7c
+	                 installed_size / (1024*1024)
Jiri f00c7c
 	                )
Jiri f00c7c
 	    if noninteractive == False and not reportclient.ask_yes_no(question):
Jiri f00c7c
 	        print _("Download cancelled by user")
Jiri f00c7c
-- 
Jiri f00c7c
1.7.7.3
Jiri f00c7c