- client/manager: prefix anonymous platform apps with "Local: "

svn path=/trunk/boinc/; revision=21023
This commit is contained in:
David Anderson 2010-03-29 22:33:08 +00:00
parent 2335e009bb
commit 582dcb2912
6 changed files with 100 additions and 81 deletions

View File

@ -2147,7 +2147,7 @@ David 29 Mar 2010
gui_rpc_client.h
gui_rpc_client_ops.cpp
David 26 Mar 2010
David 29 Mar 2010
- server: various changes;
see http://boinc.berkeley.edu/trac/wiki/CreditNew
@ -2213,3 +2213,16 @@ David 26 Mar 2010
validator.cpp
tools/
upgrade
David 29 Mar 2010
- client/manager: prefix anonymous platform apps with "Local: "
client/
client_state.cpp
client_types.cpp
clientgui/
DlgItemProperties.cpp
ViewWork.cpp
lib/
gui_rpc_client.h
gui_rpc_client_ops.cpp

View File

@ -279,7 +279,7 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
" <sched_rpc_pending>%d</sched_rpc_pending>\n"
" <send_time_stats_log>%d</send_time_stats_log>\n"
" <send_job_log>%d</send_job_log>\n"
"%s%s%s%s%s%s%s%s%s%s%s%s",
"%s%s%s%s%s%s%s%s%s%s%s%s%s",
master_url,
project_name,
symstore,
@ -312,6 +312,7 @@ int PROJECT::write_state(MIOFILE& out, bool gui_rpc) {
sched_rpc_pending,
send_time_stats_log,
send_job_log,
anonymous_platform?" <anonymous_platform/>\n":"",
master_url_fetch_pending?" <master_url_fetch_pending/>\n":"",
trickle_up_pending?" <trickle_up_pending/>\n":"",
send_file_list?" <send_file_list/>\n":"",

View File

@ -381,7 +381,8 @@ wxString CDlgItemProperties::FormatApplicationName(RESULT* result ) {
}
strBuffer.Printf(
wxT("%s %d.%02d %s"),
wxT("%s%s %d.%02d %s"),
state_result->project->anonymous_platform?_("Local: "):_(""),
strAppBuffer.c_str(),
state_result->avp->version_num / 100,
state_result->avp->version_num % 100,

View File

@ -951,7 +951,8 @@ void CViewWork::GetDocApplicationName(wxInt32 item, wxString& strBuffer) const {
}
strBuffer.Printf(
wxT(" %s %d.%02d %s"),
wxT(" %s%s %d.%02d %s"),
state_result->project->anonymous_platform?_("Local: "):_(""),
strAppBuffer.c_str(),
state_result->avp->version_num / 100,
state_result->avp->version_num % 100,

View File

@ -137,6 +137,7 @@ public:
double ati_backoff_interval;
double duration_correction_factor;
bool anonymous_platform;
bool master_url_fetch_pending; // need to fetch and parse the master URL
int sched_rpc_pending; // need to contact scheduling server
bool non_cpu_intensive;

View File

@ -257,6 +257,7 @@ int PROJECT::parse(MIOFILE& in) {
if (parse_double(buf, "<ati_backoff_time>", ati_backoff_time)) continue;
if (parse_double(buf, "<ati_backoff_interval>", ati_backoff_interval)) continue;
if (parse_double(buf, "<duration_correction_factor>", duration_correction_factor)) continue;
if (parse_bool(buf, "anonymous_platform", anonymous_platform)) continue;
if (parse_bool(buf, "master_url_fetch_pending", master_url_fetch_pending)) continue;
if (parse_int(buf, "<sched_rpc_pending>", sched_rpc_pending)) continue;
if (parse_bool(buf, "non_cpu_intensive", non_cpu_intensive)) continue;
@ -315,6 +316,7 @@ void PROJECT::clear() {
ati_backoff_time = 0;
ati_backoff_interval = 0;
duration_correction_factor = 0;
anonymous_platform = false;
master_url_fetch_pending = false;
sched_rpc_pending = 0;
ended = false;