From 08ab3c630fa4b57d5c06bcbe9d7578d5aae580dc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 23 Jan 2009 23:04:33 +0000 Subject: [PATCH] - scheduler: make NCI app versions preferable to non-plan-class svn path=/trunk/boinc/; revision=17004 --- checkin_notes | 6 ++++++ sched/sched_plan.cpp | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index bc3b2063d4..570a56a0ff 100644 --- a/checkin_notes +++ b/checkin_notes @@ -687,3 +687,9 @@ David 23 Jan 2009 sched/ sched_array.cpp sched_send.app + +David 23 Jan 2009 + - scheduler: make NCI app versions preferable to non-plan-class + + sched/ + sched_plan.cpp diff --git a/sched/sched_plan.cpp b/sched/sched_plan.cpp index 5ce551c4ca..28e9353463 100644 --- a/sched/sched_plan.cpp +++ b/sched/sched_plan.cpp @@ -147,7 +147,9 @@ int app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) { // hu.avg_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; } log_messages.printf(MSG_CRITICAL,