summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-09 18:01:11 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-09 18:01:17 +0100
commit88015575534d756c8f43c252140e4bb741a664c7 (patch)
tree0c258726e29c6a037d94e8707241f44f9e0f4580 /bin
parente8bfdbd3163dbb33b690d8a3392fe826748ce40d (diff)
downloadjenkins.debian.net-88015575534d756c8f43c252140e4bb741a664c7.tar.xz
reproducible: use only one digit for percent
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py4
1 files 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))