2004-06-09 19:15:57 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2005-02-08 04:38:31 +00:00
|
|
|
|
|
|
|
require_once("../inc/util_ops.inc");
|
|
|
|
|
|
|
|
db_init();
|
|
|
|
admin_page_head("Result Failure Summary by Platform");
|
2004-05-03 22:20:43 +00:00
|
|
|
|
2004-05-06 21:29:15 +00:00
|
|
|
$query_appid = $_GET['appid'];
|
|
|
|
$query_received_time = time() - $_GET['nsecs'];
|
|
|
|
|
|
|
|
$q = new SqlQueryString();
|
|
|
|
$q->process_form_items();
|
|
|
|
|
|
|
|
$main_query = "
|
|
|
|
SELECT
|
|
|
|
app_version_num AS App_Version,
|
2012-01-01 23:44:48 +00:00
|
|
|
app_version.plan_class AS Plan_Class,
|
2004-05-06 21:29:15 +00:00
|
|
|
case
|
|
|
|
when INSTR(host.os_name, 'Darwin') then 'Darwin'
|
|
|
|
when INSTR(host.os_name, 'Linux') then 'Linux'
|
|
|
|
when INSTR(host.os_name, 'Windows') then 'Windows'
|
|
|
|
when INSTR(host.os_name, 'SunOS') then 'SunOS'
|
2005-02-08 04:38:31 +00:00
|
|
|
when INSTR(host.os_name, 'Solaris') then 'Solaris'
|
|
|
|
when INSTR(host.os_name, 'Mac') then 'Mac'
|
2004-05-06 21:29:15 +00:00
|
|
|
else 'Unknown'
|
|
|
|
end AS OS_Name,
|
|
|
|
exit_status,
|
|
|
|
COUNT(*) AS error_count
|
|
|
|
FROM result
|
2004-11-09 07:54:31 +00:00
|
|
|
left join host on result.hostid = host.id
|
2012-01-01 23:44:48 +00:00
|
|
|
left join app_version on result.app_version_id = app_version.id
|
2004-05-06 21:29:15 +00:00
|
|
|
WHERE
|
2012-01-01 23:44:48 +00:00
|
|
|
result.appid = '$query_appid' and
|
2004-05-06 21:29:15 +00:00
|
|
|
server_state = '5' and
|
2004-11-09 07:54:31 +00:00
|
|
|
outcome = '3' and
|
2004-05-06 21:29:15 +00:00
|
|
|
received_time > '$query_received_time'
|
|
|
|
GROUP BY
|
|
|
|
app_version_num DESC,
|
|
|
|
OS_Name,
|
|
|
|
exit_status
|
|
|
|
";
|
|
|
|
|
|
|
|
$urlquery = $q->urlquery;
|
|
|
|
$result = mysql_query($main_query);
|
|
|
|
|
|
|
|
echo "<table>\n";
|
2012-01-01 23:44:48 +00:00
|
|
|
echo "<tr><th>App Version</th><th>Plan Class</th><th>OS</th><th>Exit Status</th><th>Error Count</th></tr>\n";
|
2004-05-06 21:29:15 +00:00
|
|
|
|
|
|
|
while ($res = mysql_fetch_object($result)) {
|
|
|
|
|
|
|
|
echo "<tr>";
|
2004-11-09 07:54:31 +00:00
|
|
|
|
2012-01-01 23:44:48 +00:00
|
|
|
echo "<td align=\"left\" valign=\"top\">";
|
|
|
|
echo $res->App_Version;
|
|
|
|
echo "</td>";
|
2004-05-06 21:29:15 +00:00
|
|
|
|
2012-01-01 23:44:48 +00:00
|
|
|
echo "<td align=\"left\" valign=\"top\">";
|
|
|
|
echo $res->Plan_Class;
|
|
|
|
echo "</td>";
|
|
|
|
|
|
|
|
echo "<td align=\"left\" valign=\"top\">";
|
2004-05-06 21:29:15 +00:00
|
|
|
echo $res->OS_Name;
|
|
|
|
echo "</td>";
|
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
echo "<td align=\"left\" valign=\"top\">";
|
2004-05-06 21:29:15 +00:00
|
|
|
$exit_status_condition = "exit_status=$res->exit_status";
|
2004-11-09 07:54:31 +00:00
|
|
|
echo link_results(exit_status_string($res), $urlquery, "$exit_status_condition", "");
|
2004-05-06 21:29:15 +00:00
|
|
|
echo "</td>";
|
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
echo "<td align=\"left\" valign=\"top\">";
|
2004-05-06 21:29:15 +00:00
|
|
|
echo $res->error_count;
|
|
|
|
echo "</td>";
|
|
|
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
mysql_free_result($result);
|
|
|
|
|
|
|
|
echo "</table>\n";
|
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
admin_page_tail();
|
2004-05-03 22:20:43 +00:00
|
|
|
|
2008-08-05 22:43:14 +00:00
|
|
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
2004-06-09 19:15:57 +00:00
|
|
|
?>
|