- scheduler: fix crashing bug

svn path=/trunk/boinc/; revision=24139
This commit is contained in:
David Anderson 2011-09-07 17:37:50 +00:00
parent 71d96f22b9
commit 249435f0d8
3 changed files with 11 additions and 2 deletions

View File

@ -5669,3 +5669,10 @@ David 6 Sept 2011
db_update.php
user/
submit_app.php
David 7 Sept 2011
- scheduler: fix crashing bug
sched/
sched_version.cpp
sched_assign.cpp

View File

@ -76,7 +76,9 @@ static int send_assigned_job(ASSIGNMENT& asg) {
rtfpath = config.project_path("%s", wu.result_template_file);
sprintf(suffix, "%d_%d_%d", getpid(), (int)time(0), seqno++);
retval = create_result(wu, (char *)rtfpath, suffix, key, config, 0, 0);
retval = create_result(
wu, const_cast<char*>(rtfpath), suffix, key, config, 0, 0
);
if (retval) {
log_messages.printf(MSG_CRITICAL,
"[WU#%d %s] create_result(): %s\n", wu.id, wu.name, boincerror(retval)

View File

@ -295,7 +295,7 @@ void estimate_flops_anon_platform() {
if (config.debug_version_select) {
log_messages.printf(MSG_NORMAL,
"[version] (%s) capping new_flops; %f > 2*%f\n",
new_flops, cav.host_usage.projected_flops
cav.plan_class, new_flops, cav.host_usage.projected_flops
);
}
new_flops = 2*cav.host_usage.projected_flops;