scheduler: fix bug in plan class spec logic

This commit is contained in:
David Anderson 2014-07-25 15:04:04 -07:00
parent 89b51ea43d
commit b3392bb195
2 changed files with 16 additions and 2 deletions

View File

@ -436,8 +436,22 @@ void VBOX_VM::check_trickle_triggers() {
"%s can't read trickle trigger file %s\n",
vboxwrapper_msg_prefix(buf, sizeof(buf)), filename
);
} else {
retval = boinc_send_trickle_up(
filename, const_cast<char*>(text.c_str())
);
if (retval) {
fprintf(stderr,
"%s boinc_send_trickle_up() failed: %s\n",
vboxwrapper_msg_prefix(buf, sizeof(buf)), boincerror(retval)
);
} else {
fprintf(stderr,
"%s sent trickle-up of variety %s\n",
vboxwrapper_msg_prefix(buf, sizeof(buf)), filename
);
}
}
boinc_send_trickle_up(filename, const_cast<char*>(text.c_str()));
boinc_delete_file(path);
}
}

View File

@ -568,7 +568,7 @@ bool PLAN_CLASS_SPEC::check(SCHEDULER_REQUEST& sreq, HOST_USAGE& hu) {
// custom GPU type
//
} else {
} else if (strlen(gpu_type)) {
cpp = sreq.coprocs.lookup_type(gpu_type);
if (!cpp) {
if (config.debug_version_select) {