mirror of https://github.com/BOINC/boinc.git
- GUI RPC and manager: send slot and show it in task properties
rather than slot path (slot_path is defined only for apps with graphics app). svn path=/trunk/boinc/; revision=17786
This commit is contained in:
parent
cf638ae3a6
commit
87d50be302
|
@ -3808,3 +3808,14 @@ David 10 Apr 2009
|
|||
lib/
|
||||
gui_rpc_client.h
|
||||
gui_rpc_client_ops.cpp
|
||||
|
||||
David 10 Apr 2009
|
||||
- GUI RPC and manager: send slot and show it in task properties
|
||||
rather than slot path
|
||||
(slot_path is defined only for apps with graphics app).
|
||||
|
||||
clientgui/
|
||||
DlgItemProperties.cpp
|
||||
lib/
|
||||
gui_rpc_client.h
|
||||
gui_rpc_client_ops.cpp
|
||||
|
|
|
@ -181,7 +181,9 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
|
|||
addProperty(_("Fraction done"), wxString::Format(wxT("%.3f %%"), result->fraction_done*100));
|
||||
addProperty(_("Virtual memory size"), FormatDiskSpace(result->swap_size));
|
||||
addProperty(_("Working set size"), FormatDiskSpace(result->working_set_size_smoothed));
|
||||
addProperty(_("Execution directory"), result->slot_path);
|
||||
if (result->slot >= 0) {
|
||||
addProperty(_("Slot"), result->slot);
|
||||
}
|
||||
} else if (result->state >= RESULT_COMPUTE_ERROR) {
|
||||
addProperty(_("CPU time"), FormatTime(result->final_cpu_time));
|
||||
addProperty(_("Elapsed time"), FormatTime(result->final_elapsed_time));
|
||||
|
|
|
@ -221,6 +221,7 @@ public:
|
|||
bool active_task;
|
||||
int active_task_state;
|
||||
int app_version_num;
|
||||
int slot;
|
||||
double checkpoint_cpu_time;
|
||||
double current_cpu_time;
|
||||
double fraction_done;
|
||||
|
@ -236,6 +237,7 @@ public:
|
|||
bool edf_scheduled;
|
||||
std::string graphics_exec_path;
|
||||
std::string slot_path;
|
||||
// only present if graphics_exec_path is
|
||||
std::string resources;
|
||||
|
||||
APP* app;
|
||||
|
|
|
@ -405,6 +405,7 @@ int RESULT::parse(MIOFILE& in) {
|
|||
continue;
|
||||
}
|
||||
if (parse_int(buf, "<app_version_num>", app_version_num)) continue;
|
||||
if (parse_int(buf, "<slot>", slot)) continue;
|
||||
if (parse_double(buf, "<checkpoint_cpu_time>", checkpoint_cpu_time)) continue;
|
||||
if (parse_double(buf, "<current_cpu_time>", current_cpu_time)) continue;
|
||||
if (parse_double(buf, "<elapsed_time>", elapsed_time)) continue;
|
||||
|
@ -446,6 +447,7 @@ void RESULT::clear() {
|
|||
active_task = false;
|
||||
active_task_state = 0;
|
||||
app_version_num = 0;
|
||||
slot = -1;
|
||||
checkpoint_cpu_time = 0;
|
||||
current_cpu_time = 0;
|
||||
fraction_done = 0;
|
||||
|
|
Loading…
Reference in New Issue