From 65679139c5dd07e8602a162ff8ab24c25b902282 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 19 Feb 2009 15:43:37 +0000 Subject: [PATCH] - scheduler: make host.p_features available to app_plan() svn path=/trunk/boinc/; revision=17307 --- checkin_notes | 8 ++++++++ db/boinc_db.h | 1 + sched/server_types.cpp | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index b62fc89192..a2b96ec750 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1707,3 +1707,11 @@ David 18 Feb 2009 user/ workunit.php result.php + +David 18 Feb 2009 + - scheduler: make host.p_features available to app_plan() + + db/ + boinc_db.h + sched/ + server_types.cpp diff --git a/db/boinc_db.h b/db/boinc_db.h index a9be05d115..62e78c74a8 100644 --- a/db/boinc_db.h +++ b/db/boinc_db.h @@ -304,6 +304,7 @@ struct HOST { // the following not stored in DB // double claimed_credit_per_cpu_sec; + char p_features[256]; int parse(FILE*); int parse_time_stats(FILE*); diff --git a/sched/server_types.cpp b/sched/server_types.cpp index 3a74ee821c..8d916f2d9d 100644 --- a/sched/server_types.cpp +++ b/sched/server_types.cpp @@ -1014,6 +1014,7 @@ int HOST::parse(FILE* fin) { if (parse_double(buf, "", d_free)) continue; if (parse_double(buf, "", n_bwup)) continue; if (parse_double(buf, "", n_bwdown)) continue; + if (parse_str(buf, "", p_features, sizeof(p_features))) continue; // parse deprecated fields to avoid error messages // @@ -1024,7 +1025,6 @@ int HOST::parse(FILE* fin) { // fields reported by 5.5+ clients, not currently used // - if (match_tag(buf, "")) continue; if (match_tag(buf, "")) continue; if (match_tag(buf, "")) continue;