From 5ae9b4de430fa0c07af1c070007584e0e626de18 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Thu, 27 Feb 2003 19:42:23 +0000 Subject: [PATCH] team name parsing svn path=/trunk/boinc/; revision=982 --- client/cs_scheduler.C | 3 +++ client/scheduler_op.C | 1 + client/scheduler_op.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C index f9f0199eba..0fd57731e0 100644 --- a/client/cs_scheduler.C +++ b/client/cs_scheduler.C @@ -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; diff --git a/client/scheduler_op.C b/client/scheduler_op.C index d90f12aff0..c1e78a3956 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -530,6 +530,7 @@ int SCHEDULER_REPLY::parse(FILE* in) { else if (parse_double(buf, "", user_total_credit)) continue; else if (parse_double(buf, "", user_expavg_credit)) continue; else if (parse_int(buf, "", (int &)user_create_time)) continue; + else if (parse_str(buf, "", team_name, sizeof(team_name))) continue; else if (parse_int(buf, "", hostid)) continue; else if (parse_double(buf, "", host_total_credit)) continue; else if (parse_double(buf, "", host_expavg_credit)) continue; diff --git a/client/scheduler_op.h b/client/scheduler_op.h index c0837f1a6e..3ff12f501b 100644 --- a/client/scheduler_op.h +++ b/client/scheduler_op.h @@ -103,7 +103,7 @@ struct SCHEDULER_REPLY { char project_name[256]; char* global_prefs_xml; // not including tags char* project_prefs_xml; // not including 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;