common/tools/brag/uh2brag.pl
changeset 962 a5e5d79cd09a
parent 951 5d2cdb4d231d
child 1244 c04fc0405d17
equal deleted inserted replaced
961:94716c328941 962:a5e5d79cd09a
    41 # READ INDEX.HTML FILE
    41 # READ INDEX.HTML FILE
    42 if (open(INDEX, $raptorSummary))
    42 if (open(INDEX, $raptorSummary))
    43 {
    43 {
    44 	while (my $line = <INDEX>)
    44 	while (my $line = <INDEX>)
    45 	{
    45 	{
    46 		if ($line =~ m{<tr><td><a href='.*'>.*</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td>})
    46 		if ($line =~ m{<tr><td><a href='.*'>.*</a></td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td><td>(\d+)</td>(<td>(\d+)</td>)?})
    47 		{
    47 		{
    48 			$criticals += $1 if ($1);
    48 			$criticals += $1 if ($1);
    49 			$majors += $2 if ($2);
    49 			$majors += $2 if ($2);
       
    50 			$majors += $6 if ($6); # add number of missing files to majors
    50 			$minors += $3 if ($3);
    51 			$minors += $3 if ($3);
    51 			$unknowns += $4 if ($4);
    52 			$unknowns += $4 if ($4);
    52 		}
    53 		}
    53 	}
    54 	}
    54 	close(INDEX);
    55 	close(INDEX);