mirror of https://github.com/BOINC/boinc.git
parent
a815f03c1c
commit
5352813307
|
@ -59,9 +59,11 @@ int write_init_data_file(FILE* f, APP_INIT_DATA& ai) {
|
|||
xml_escape(str1, str2);
|
||||
fprintf(f, "<user_name>%s</user_name>\n", str2.c_str());
|
||||
}
|
||||
#ifdef _WIN32
|
||||
if (strlen(ai.comm_obj_name)) {
|
||||
fprintf(f, "<comm_obj_name>%s</comm_obj_name>\n", ai.comm_obj_name);
|
||||
}
|
||||
#endif
|
||||
fprintf(f,
|
||||
"<wu_cpu_time>%f</wu_cpu_time>\n"
|
||||
"<user_total_credit>%f</user_total_credit>\n"
|
||||
|
@ -102,7 +104,9 @@ int parse_init_data_file(FILE* f, APP_INIT_DATA& ai) {
|
|||
else if (parse_str(buf, "<app_name>", ai.app_name, sizeof(ai.app_name))) continue;
|
||||
else if (parse_str(buf, "<user_name>", ai.user_name, sizeof(ai.user_name))) continue;
|
||||
else if (parse_str(buf, "<team_name>", ai.team_name, sizeof(ai.team_name))) continue;
|
||||
#ifdef _WIN32
|
||||
else if (parse_str(buf, "<comm_obj_name>", ai.comm_obj_name, sizeof(ai.comm_obj_name))) continue;
|
||||
#endif
|
||||
else if (parse_double(buf, "<user_total_credit>", ai.user_total_credit)) continue;
|
||||
else if (parse_double(buf, "<user_expavg_credit>", ai.user_expavg_credit)) continue;
|
||||
else if (parse_double(buf, "<host_total_credit>", ai.host_total_credit)) continue;
|
||||
|
|
Loading…
Reference in New Issue