team name parsing

svn path=/trunk/boinc/; revision=982
This commit is contained in:
Eric Heien 2003-02-27 19:42:23 +00:00
parent e5691b2793
commit 5ae9b4de43
3 changed files with 5 additions and 1 deletions

View File

@ -344,6 +344,9 @@ int CLIENT_STATE::handle_scheduler_reply(
if (strlen(sr.user_name)) {
strcpy(project->user_name, sr.user_name);
}
if (strlen(sr.team_name)) {
strcpy(project->team_name, sr.team_name);
}
project->user_total_credit = sr.user_total_credit;
project->user_expavg_credit = sr.user_expavg_credit;
project->user_create_time = sr.user_create_time;

View File

@ -530,6 +530,7 @@ int SCHEDULER_REPLY::parse(FILE* in) {
else if (parse_double(buf, "<user_total_credit>", user_total_credit)) continue;
else if (parse_double(buf, "<user_expavg_credit>", user_expavg_credit)) continue;
else if (parse_int(buf, "<user_create_time>", (int &)user_create_time)) continue;
else if (parse_str(buf, "<team_name>", team_name, sizeof(team_name))) continue;
else if (parse_int(buf, "<hostid>", hostid)) continue;
else if (parse_double(buf, "<host_total_credit>", host_total_credit)) continue;
else if (parse_double(buf, "<host_expavg_credit>", host_expavg_credit)) continue;

View File

@ -103,7 +103,7 @@ struct SCHEDULER_REPLY {
char project_name[256];
char* global_prefs_xml; // not including <global_preferences> tags
char* project_prefs_xml; // not including <project_preferences> tags
char user_name[256];
char user_name[256],team_name[256];
double user_total_credit;
double user_expavg_credit;
unsigned int user_create_time;