mirror of https://github.com/BOINC/boinc.git
scheduler: fix bug in plan class spec logic
This commit is contained in:
parent
89b51ea43d
commit
b3392bb195
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue