Results of Coverity Runs against Pacemaker
";
$runs = glob("*");
array_multisort(array_map('filemtime', $runs), /*SORT_ASC*/SORT_DESC, $runs);
$lpc = 0;
/*$total = count($runs);*/
foreach ($runs as $hash) {
if(strstr($hash, "index")) {
continue;
}
$total++;
}
foreach ($runs as $hash) {
if(strstr($hash, "index")) {
continue;
}
$run = $total - $lpc;
$when = date("F d Y, gA", filemtime($hash));
$next = 0;
$errors = 0;
$file_handle = fopen("$hash/summary.html", "r");
while (!feof($file_handle)) {
$line = fgetss($file_handle);
if(strstr($line, "Total")) {
$next = 1;
} else if($next) {
$errors = $line;
break;
}
}
fclose($file_handle);
echo "Run $run ($when) - $errors total errors ";
echo " [Summary]";
echo " [Detail]";
echo " [$hash]";
echo "";
$lpc++;
}
echo "";
?>