From efc01d180beabea3aede34411d879d0a450fff43 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 3 Feb 2016 15:01:51 +0100 Subject: reproducible debian dashboard: correctly count usertagged bugs excluding ftbfs --- bin/reproducible_html_dashboard.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_html_dashboard.sh') diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh index e1505d0f..c6dd2851 100755 --- a/bin/reproducible_html_dashboard.sh +++ b/bin/reproducible_html_dashboard.sh @@ -270,10 +270,11 @@ write_usertag_table() { let "TTOTAL=TTOTAL+TOTAL" fi done - # now subtract the ftbfs bugs again (=the last value) + # now subtract the ftbfs bugs again (=the last fields from the result) # as those others are the ones we really care about - let "REPRODUCIBLE_TOPEN=TOPEN-VALUE" - let "REPRODUCIBLE_TDONE=TDONE-VALUE" + let "CCOUNT=COUNT-1" + let "REPRODUCIBLE_TOPEN=TOPEN-$(echo $RESULT | cut -d "|" -f$CCOUNT)" + let "REPRODUCIBLE_TDONE=TDONE-$(echo $RESULT | cut -d "|" -f$COUNT)" let "REPRODUCIBLE_TTOTAL=REPRODUCIBLE_TOPEN+REPRODUCIBLE_TDONE" write_page "Sum of bugs with usertags related to reproducible builds, excluding those tagged 'ftbfs'$REPRODUCIBLE_TOPEN$REPRODUCIBLE_TDONE$REPRODUCIBLE_TTOTAL" write_page "Sum of all bugs with usertags related to reproducible builds$TOPEN$TDONE$TTOTAL" -- cgit v1.2.3-54-g00ecf