summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-15 01:13:39 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-15 17:37:46 +0100
commit9e151d663c608ef06a19a8cf82ebdb557fe06d28 (patch)
treef2d2d9a60bb1237fef44020273e711e305e40d75 /bin
parent836291e79f8334a4484e46a40d3159009421f158 (diff)
downloadjenkins.debian.net-9e151d663c608ef06a19a8cf82ebdb557fe06d28.tar.xz
reproducible: html_indexes: do percents against how many tested packages, not packages in sid
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_indexes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py
index cd580190..1e55bdbb 100755
--- a/bin/reproducible_html_indexes.py
+++ b/bin/reproducible_html_indexes.py
@@ -119,8 +119,8 @@ pages = {
def build_leading_text_section(section, rows):
html = '<p>\n' + tab
total = len(rows)
- percent = round(((total/amount)*100), 1) # amount is defined in common
- try:
+ percent = round(((total/count_total)*100), 1) # count_total is
+ try: # defined in common
html += '<a href="' + section['icon_link'] + '" target="_parent">'
no_icon_link = False
except KeyError: