mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=1976
This commit is contained in:
parent
a31207d6fd
commit
cd62c72f1b
|
@ -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) {
|
||||
start_table();
|
||||
if (!$hide_times) {
|
||||
|
@ -349,12 +358,7 @@ function show_result_short($result) {
|
|||
$oc = result_outcome_string($result->outcome);
|
||||
$received = time_str($result->received_time);
|
||||
$version = client_version_string($result->client_version_num);
|
||||
|
||||
if ($result->outcome == 3) {
|
||||
$outcome_color = 'red';
|
||||
} else {
|
||||
$outcome_color = 'white';
|
||||
}
|
||||
$outcome_color = outcome_color($result->outcome);
|
||||
|
||||
echo "
|
||||
<tr>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php {
|
||||
|
||||
// show summary of results that have been received or timed out recently
|
||||
|
||||
|
@ -48,9 +48,8 @@
|
|||
}
|
||||
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";
|
||||
for ($ro=0; $ro<6; $ro++) {
|
||||
if ($outcome[$ro] == 0) {
|
||||
|
@ -58,11 +57,12 @@
|
|||
} else {
|
||||
$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";
|
||||
for ($cs=1; $cs<6; $cs++) {
|
||||
if ($client_state[$cs] == 0) {
|
||||
|
|
Loading…
Reference in New Issue