mirror of https://github.com/BOINC/boinc.git
parent
5100dcd7e9
commit
a07a2f7311
|
@ -170,7 +170,7 @@ function show_workunit($wu,$show_xml_doc) {
|
|||
echo "<p>";
|
||||
}
|
||||
|
||||
function res_state_string($s) {
|
||||
function res_server_state_string($s) {
|
||||
switch($s) {
|
||||
case 1: return "Inactive";
|
||||
case 2: return "Unsent";
|
||||
|
@ -182,6 +182,15 @@ function res_state_string($s) {
|
|||
return "unknown";
|
||||
}
|
||||
|
||||
function result_client_state_str($s) {
|
||||
switch($s) {
|
||||
case 1: return "Downloading";
|
||||
case 2: return "Computing";
|
||||
case 3: return "Uploading";
|
||||
case 4: return "Done";
|
||||
}
|
||||
}
|
||||
|
||||
function validate_state_str($s) {
|
||||
switch($s) {
|
||||
case 0: return "Initial";
|
||||
|
@ -201,10 +210,10 @@ function show_result($result,$show_xml_docs,$show_stderr,$show_times) {
|
|||
}
|
||||
row("Name", $result->name);
|
||||
row("Workunit", "<a href=db.php?show=workunit&id=$result->workunitid>" . wu_name_by_id($result->workunitid) . "</a>" );
|
||||
row("Server state", res_state_string($result->server_state));
|
||||
row("Server state", res_server_state_string($result->server_state));
|
||||
row("Deadline", time_str($result->report_deadline));
|
||||
row("Host ID", "<a href=db.php?show=host&id=$result->hostid>" . host_name_by_id($result->hostid) . "</a>");
|
||||
row("Client state", $result->client_state);
|
||||
row("Client state", result_client_state_str($result->client_state));
|
||||
row("CPU time", $result->cpu_time);
|
||||
if ($show_xml_docs) {
|
||||
row("XML doc in", "<pre>".htmlspecialchars($result->xml_doc_in)."</pre>");
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
if (strlen($result_state) && $result_state != 0) {
|
||||
$query = append_sql_query( $query, "server_state = $result_state", $first );
|
||||
$english_query = append_sql_query( $english_query, "server state is ".res_state_string($result_state), $first );
|
||||
$english_query = append_sql_query( $english_query, "server state is ".res_server_state_string($result_state), $first );
|
||||
$rstate = $result_state;
|
||||
$first = 0;
|
||||
} else {
|
||||
|
@ -172,7 +172,7 @@
|
|||
. "<option value=\"0\"" . ($rstate == 0 ? "selected" : "") . "> All\n"
|
||||
);
|
||||
for( $i=1;$i<=6;$i++ ) {
|
||||
printf( "<option value=\"$i\"" . ($rstate == $i ? "selected" : "") . ">" . res_state_string($i) . "\n" );
|
||||
printf( "<option value=\"$i\"" . ($rstate == $i ? "selected" : "") . ">" . res_server_state_string($i) . "\n" );
|
||||
}
|
||||
printf( "</select>\n<p>\n" );
|
||||
print_text_field( "Result in batch number:", "batch", $batch );
|
||||
|
|
Loading…
Reference in New Issue