*** empty log message ***

svn path=/trunk/boinc/; revision=4443
This commit is contained in:
David Anderson 2004-10-26 22:54:43 +00:00
parent 4cb055dbe8
commit 79c3af7119
4 changed files with 17 additions and 2 deletions

View File

@ -18922,3 +18922,11 @@ David 26 Oct 2004
edit_forum_preferences_form.php
forum_post.php
forum_rate.php
David 26 Oct 2004
- added "supports graphics" boolean to RESULT GUI RPC reply
client/
app.C
lib/
gui_rpc_client.C,h

View File

@ -341,7 +341,7 @@ int ACTIVE_TASK::write(MIOFILE& fout) {
" <fraction_done>%f</fraction_done>\n"
" <current_cpu_time>%f</current_cpu_time>\n"
" <vm_size>%f</vm_size>\n"
"%s"
"%s%s"
"</active_task>\n",
result->project->master_url,
result->name,
@ -353,7 +353,8 @@ int ACTIVE_TASK::write(MIOFILE& fout) {
fraction_done,
current_cpu_time,
vm_size,
suspended_via_gui?" <suspended_via_gui/>\n":""
suspended_via_gui?" <suspended_via_gui/>\n":"",
supports_graphics()?" <supports_graphics/>\n":""
);
return 0;
}

View File

@ -303,6 +303,10 @@ int RESULT::parse(MIOFILE& in) {
active_task = true;
continue;
}
else if (match_tag(buf, "<supports_graphics/>")) {
supports_graphics = true;
continue;
}
else if (parse_double(buf, "<final_cpu_time>", final_cpu_time)) continue;
else if (parse_int(buf, "<state>", state)) continue;
else if (parse_int(buf, "<scheduler_state>", scheduler_state)) continue;
@ -361,6 +365,7 @@ void RESULT::clear() {
fraction_done = 0.0;
estimated_cpu_time_remaining = 0.0;
suspended_via_gui = false;
supports_graphics = false;
}
FILE_TRANSFER::FILE_TRANSFER() {

View File

@ -146,6 +146,7 @@ public:
double vm_size;
double estimated_cpu_time_remaining;
bool suspended_via_gui;
bool supports_graphics;
APP* app;
WORKUNIT* wup;