mirror of https://github.com/BOINC/boinc.git
- scheduler: parse and return platform name in anon platform apps.
Otherwise, if an app version has a platform different from the client's primary platform, the client won't find it. svn path=/trunk/boinc/; revision=17508
This commit is contained in:
parent
e74f93c10d
commit
52d46f05d6
|
@ -2692,3 +2692,11 @@ David 5 Mar 2009
|
|||
client_types.cpp,h
|
||||
cs_scheduler.cpp
|
||||
cs_statefile.cpp
|
||||
|
||||
David 5 Mar 2009
|
||||
- scheduler: parse and return platform name in anon platform apps.
|
||||
Otherwise, if an app version has a platform different from
|
||||
the client's primary platform, the client won't find it.
|
||||
|
||||
sched/
|
||||
server_types.cpp,h
|
||||
|
|
|
@ -61,6 +61,7 @@ int CLIENT_APP_VERSION::parse(FILE* f) {
|
|||
while (fgets(buf, sizeof(buf), f)) {
|
||||
if (match_tag(buf, "</app_version>")) return 0;
|
||||
if (parse_str(buf, "<app_name>", app_name, 256)) continue;
|
||||
if (parse_str(buf, "<platform>", platform, 256)) continue;
|
||||
if (parse_str(buf, "<plan_class>", plan_class, 256)) continue;
|
||||
if (parse_int(buf, "<version_num>", version_num)) continue;
|
||||
if (parse_double(buf, "<flops>", host_usage.flops)) continue;
|
||||
|
@ -942,9 +943,10 @@ int RESULT::write_to_client(FILE* fout) {
|
|||
);
|
||||
} else if (cavp) {
|
||||
fprintf(fout,
|
||||
" <platform>%s</platform>\n"
|
||||
" <version_num>%d</version_num>\n"
|
||||
" <plan_class>%s</plan_class>\n",
|
||||
cavp->version_num, cavp->plan_class
|
||||
cavp->platform, cavp->version_num, cavp->plan_class
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -215,6 +215,7 @@ struct MSG_FROM_HOST_DESC {
|
|||
//
|
||||
struct CLIENT_APP_VERSION {
|
||||
char app_name[256];
|
||||
char platform[256];
|
||||
int version_num;
|
||||
char plan_class[256];
|
||||
HOST_USAGE host_usage;
|
||||
|
|
Loading…
Reference in New Issue