From bcdb25faca07ac0ee48846ff1f0d9578442e7198 Mon Sep 17 00:00:00 2001 From: Daniel Hsu Date: Fri, 9 Jul 2004 17:08:21 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3828 --- doc/client_sched.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/client_sched.php b/doc/client_sched.php index 51af42102c..2bdb034168 100644 --- a/doc/client_sched.php +++ b/doc/client_sched.php @@ -299,7 +299,7 @@ compute_work_request(): foreach project P: project_active_frac = active_frac * P.resource_share - work_remaining = 0 + time_to_starvation = 0 results_to_skip = min_results(P) - 1 P.work_request = 0 @@ -307,13 +307,13 @@ compute_work_request(): if results_to_skip > 0: results_to_skip-- continue - work_remaining += cpu_time(R) / project_active_frac + time_to_starvation += cpu_time(R) / project_active_frac - if P.work_remaining < T: - if work_remaining == 0: + if time_to_starvation < T: + if time_to_starvation == 0: urgency = NEED_WORK_IMMEDIATELY P.work_request = - (2*T - work_remaining)*project_active_frac + (2*T - time_to_starvation)*project_active_frac urgency = max(NEED_WORK, urgency) return urgency