\n";
echo "
";
echo "";
echo $id;
echo " | \n";
echo "";
echo $name;
echo " | \n";
echo "";
echo $quorum;
echo " | \n";
echo "";
echo "";
echo $errors;
echo " | \n";
echo "\n";
}
$dbresult = mysql_query("
SELECT workunitid, outcome, workunit.name, min_quorum
FROM result, workunit
WHERE workunit.id = workunitid AND server_state = 5
ORDER BY workunitid, outcome DESC
;");
echo "
\n";
echo "WU ID | WU name | Quorum | Errors |
\n";
$rescount = 0;
$previd = -1;
$prevname = "";
$prevquorum = 1;
$errors = 0;
// The current version scans for client errors only.
// In case you want to include validate errors, add "|| (outcome = 6)" to "(outcome = 3)"
while ($res = mysql_fetch_object($dbresult)) {
$id = $res->workunitid;
if ($id != $previd) {
if ($errors > $prevquorum + $notification_level) {
print_wu($previd,$prevname,$prevquorum,$errors);
$rescount++;
}
$previd = $id;
$prevname = $res->name;
$prevquorum = $res->min_quorum;
$errors = 0;
}
if ($res->outcome == 3) {
$errors ++;
}
if ($res->outcome == 1) {
$errors = 0;
}
}
mysql_free_result($dbresult);
if ($errors > $prevquorum) {
print_wu($id,$prevname,$prevquorum,$errors);
$rescount++;
}
echo "
\n
";
echo $rescount;
echo " entries\n";
admin_page_tail();
end_cache($cache_sec);
?>