Account for total number of releasables when translating uh to brag and to Diamonds
authorDario Sestito <darios@symbian.org>
Thu, 02 Sep 2010 13:32:47 +0100
changeset 1244 c04fc0405d17
parent 1241 776ca456c221
child 1245 421d0e717095
Account for total number of releasables when translating uh to brag and to Diamonds
common/tools/brag/uh2brag.pl
common/tools/uh2diamonds.pl
--- a/common/tools/brag/uh2brag.pl	Thu Sep 02 12:17:04 2010 +0100
+++ b/common/tools/brag/uh2brag.pl	Thu Sep 02 13:32:47 2010 +0100
@@ -43,7 +43,7 @@
 {
 	while (my $line = <INDEX>)
 	{
-		if ($line =~ m{<tr><td><a href='.*'>.*</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td>(<td>(\d+)</td>)?})
+		if ($line =~ m{<tr><td><a href='.*'>.*</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td>(<td>(\d+)/\d*</td>)?})
 		{
 			$criticals += $1 if ($1);
 			$majors += $2 if ($2);
--- a/common/tools/uh2diamonds.pl	Thu Sep 02 12:17:04 2010 +0100
+++ b/common/tools/uh2diamonds.pl	Thu Sep 02 13:32:47 2010 +0100
@@ -53,7 +53,7 @@
 		$minor += $3;
 		$unknown += $4;
 	}
-	elsif($line =~ m,<tr><td><a href='.+'>.+</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td></tr>,)
+	elsif($line =~ m,<tr><td><a href='.+'>.+</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)/\d*</td></tr>,)
 	{
 		$critical += $1;
 		$major += $2;