- scheduler: make NCI app versions preferable to non-plan-class

svn path=/trunk/boinc/; revision=17004
This commit is contained in:
David Anderson 2009-01-23 23:04:33 +00:00
parent 4cd3c530b0
commit 08ab3c630f
2 changed files with 9 additions and 1 deletions

View File

@ -687,3 +687,9 @@ David 23 Jan 2009
sched/ sched/
sched_array.cpp sched_array.cpp
sched_send.app sched_send.app
David 23 Jan 2009
- scheduler: make NCI app versions preferable to non-plan-class
sched/
sched_plan.cpp

View File

@ -147,7 +147,9 @@ int app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) {
// //
hu.avg_ncpus = .01; hu.avg_ncpus = .01;
hu.max_ncpus = .01; hu.max_ncpus = .01;
hu.flops = sreq.host.p_fpops; hu.flops = sreq.host.p_fpops*1.01;
// The *1.01 is needed to ensure that we'll send this app
// version rather than a non-plan-class one
return 0; return 0;
} }
log_messages.printf(MSG_CRITICAL, log_messages.printf(MSG_CRITICAL,