- scheduler: fix anon platform bug that caused zero FPOPS est

svn path=/trunk/boinc/; revision=21689
This commit is contained in:
David Anderson 2010-06-03 19:24:57 +00:00
parent 356327d88c
commit db667b77e8
2 changed files with 11 additions and 5 deletions

View File

@ -4094,3 +4094,9 @@ David 2 Jun 2010
sched_config.cpp,h
sched_limit.cpp
sched_send.cpp
David 3 Jun 2010
- scheduler: fix anon platform bug that caused zero FPOPS est
sched/
sched_send.cpp

View File

@ -1398,6 +1398,11 @@ static double clamp_req_sec(double x) {
void send_work_setup() {
unsigned int i;
g_wreq->seconds_to_fill = clamp_req_sec(g_request->work_req_seconds);
g_wreq->cpu_req_secs = clamp_req_sec(g_request->cpu_req_secs);
g_wreq->cpu_req_instances = g_request->cpu_req_instances;
g_wreq->anonymous_platform = anonymous(g_request->platforms.list[0]);
if (g_wreq->anonymous_platform) {
estimate_flops_anon_platform();
}
@ -1407,11 +1412,6 @@ void send_work_setup() {
get_running_frac();
g_wreq->get_job_limits();
g_wreq->seconds_to_fill = clamp_req_sec(g_request->work_req_seconds);
g_wreq->cpu_req_secs = clamp_req_sec(g_request->cpu_req_secs);
g_wreq->cpu_req_instances = g_request->cpu_req_instances;
g_wreq->anonymous_platform = anonymous(g_request->platforms.list[0]);
if (g_request->coprocs.cuda.count) {
g_wreq->cuda_req_secs = clamp_req_sec(g_request->coprocs.cuda.req_secs);
g_wreq->cuda_req_instances = g_request->coprocs.cuda.req_instances;