- scheduler: send <no_rsc_apps> elements to post-7.0.40 clients

This commit is contained in:
David Anderson 2013-04-19 00:11:24 -07:00
parent 64d7fa3474
commit eac1264656
1 changed files with 8 additions and 9 deletions

View File

@ -899,7 +899,7 @@ int SCHEDULER_REPLY::write(FILE* fout, SCHEDULER_REQUEST& sreq) {
fprintf(fout, "%s", file_transfer_requests[i].c_str());
}
if (g_request->core_client_version < 73000) {
if (g_request->core_client_version < 70040) {
fprintf(fout,
"<no_cpu_apps>%d</no_cpu_apps>\n"
"<no_cuda_apps>%d</no_cuda_apps>\n"
@ -908,14 +908,13 @@ int SCHEDULER_REPLY::write(FILE* fout, SCHEDULER_REQUEST& sreq) {
ssp->have_apps_for_proc_type[PROC_TYPE_NVIDIA_GPU]?0:1,
ssp->have_apps_for_proc_type[PROC_TYPE_AMD_GPU]?0:1
);
} else {
for (i=0; i<NPROC_TYPES; i++) {
if (!ssp->have_apps_for_proc_type[i]) {
fprintf(fout,
"<no_rsc_apps>%s</no_rsc_apps>\n",
proc_type_name_xml(i)
);
}
}
for (i=0; i<NPROC_TYPES; i++) {
if (!ssp->have_apps_for_proc_type[i]) {
fprintf(fout,
"<no_rsc_apps>%s</no_rsc_apps>\n",
proc_type_name_xml(i)
);
}
}
gui_urls.get_gui_urls(user, host, team, buf);