*** empty log message ***

svn path=/trunk/boinc/; revision=1976
This commit is contained in:
Karl Chen 2003-08-04 23:37:32 +00:00
parent a31207d6fd
commit cd62c72f1b
2 changed files with 16 additions and 12 deletions

View File

@ -295,6 +295,15 @@ function client_version_string($client_version_num) {
} }
} }
function outcome_color($outcome) {
switch($s) {
switch($s) {
case 1: return 'darkgreen'; // "Success"
case 3: return 'darkred'; // "Client error"
}
return 'white';
}
function show_result($result, $hide_xml_docs, $hide_stderr, $hide_times) { function show_result($result, $hide_xml_docs, $hide_stderr, $hide_times) {
start_table(); start_table();
if (!$hide_times) { if (!$hide_times) {
@ -349,12 +358,7 @@ function show_result_short($result) {
$oc = result_outcome_string($result->outcome); $oc = result_outcome_string($result->outcome);
$received = time_str($result->received_time); $received = time_str($result->received_time);
$version = client_version_string($result->client_version_num); $version = client_version_string($result->client_version_num);
$outcome_color = outcome_color($result->outcome);
if ($result->outcome == 3) {
$outcome_color = 'red';
} else {
$outcome_color = 'white';
}
echo " echo "
<tr> <tr>

View File

@ -1,4 +1,4 @@
<?php <?php {
// show summary of results that have been received or timed out recently // show summary of results that have been received or timed out recently
@ -48,9 +48,8 @@
} }
row2(result_server_state_string($ss), $x); row2(result_server_state_string($ss), $x);
} }
end_table(); echo "<tr></tr>";
start_table();
echo "<tr><th>Outcome of 'Over' results</th><th># results</th></tr>\n"; echo "<tr><th>Outcome of 'Over' results</th><th># results</th></tr>\n";
for ($ro=0; $ro<6; $ro++) { for ($ro=0; $ro<6; $ro++) {
if ($outcome[$ro] == 0) { if ($outcome[$ro] == 0) {
@ -58,11 +57,12 @@
} else { } else {
$x = "<a href=db_action.php?table=result&received_time=$y&result_outcome=$ro&sort_by=received_time&detail=low>".$outcome[$ro]."</a>"; $x = "<a href=db_action.php?table=result&received_time=$y&result_outcome=$ro&sort_by=received_time&detail=low>".$outcome[$ro]."</a>";
} }
row2(result_outcome_string($ro), $x); $h = result_outcome_string($ro);
$color = outcome_color($ro);
echo "<tr><td align=right bgcolor=$color>$h</td><td>$x</td></tr>\n";
} }
end_table(); echo "<tr></tr>";
start_table();
echo "<tr><th>Client state of 'Client error' results</th><th># results</th></tr>\n"; echo "<tr><th>Client state of 'Client error' results</th><th># results</th></tr>\n";
for ($cs=1; $cs<6; $cs++) { for ($cs=1; $cs<6; $cs++) {
if ($client_state[$cs] == 0) { if ($client_state[$cs] == 0) {