From 88015575534d756c8f43c252140e4bb741a664c7 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 9 Jan 2015 18:01:11 +0100 Subject: reproducible: use only one digit for percent --- bin/reproducible_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index 72352bda..4ba3a414 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -193,8 +193,8 @@ amount = int(query_db('SELECT count(name) FROM sources')[0][0]) count_total = int(query_db('SELECT COUNT(name) FROM source_packages')[0][0]) count_good = int(query_db( 'SELECT COUNT(name) FROM source_packages WHERE status="reproducible"')[0][0]) -percent_total = round(((count_total/amount)*100), 2) -percent_good = round(((count_good/count_total)*100), 2) +percent_total = round(((count_total/amount)*100), 1) +percent_good = round(((count_good/count_total)*100), 1) log.info('Total packages in Sid:\t' + str(amount)) log.info('Total tested packages:\t' + str(count_total)) log.info('Total reproducible packages:\t' + str(count_good)) -- cgit v1.2.3-70-g09d2