common/tools/brag/uh2brag.pl
changeset 962 a5e5d79cd09a
parent 951 5d2cdb4d231d
child 1244 c04fc0405d17
--- a/common/tools/brag/uh2brag.pl	Fri Apr 09 10:34:32 2010 +0100
+++ b/common/tools/brag/uh2brag.pl	Mon Apr 12 13:53:36 2010 +0100
@@ -43,10 +43,11 @@
 {
 	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>})
+		if ($line =~ m{<tr><td><a href='.*'>.*</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td>(<td>(\d+)</td>)?})
 		{
 			$criticals += $1 if ($1);
 			$majors += $2 if ($2);
+			$majors += $6 if ($6); # add number of missing files to majors
 			$minors += $3 if ($3);
 			$unknowns += $4 if ($4);
 		}