From 01688c81eb163f7c96c871ae52b04b936f34ca1d Mon Sep 17 00:00:00 2001 From: Michael Gary Date: Wed, 5 Jun 2002 00:21:15 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=87 --- sched/handle_request.C | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sched/handle_request.C b/sched/handle_request.C index 3a4bb76e64..058dbf3e37 100644 --- a/sched/handle_request.C +++ b/sched/handle_request.C @@ -44,17 +44,6 @@ double estimate_duration(WORKUNIT& wu, HOST& host) { return wu.rsc_fpops/host.p_fpops + wu.rsc_iops/host.p_iops; } -// estimate the number of seconds that a WU will take on a host -// -int estimate_seconds(WORKUNIT& wu, HOST& host) { - int calculations, memory_accesses; - calculations = wu.rsc_fpops/host.p_fpops + wu.rsc_iops/host.p_iops; - memory_accesses = wu.rsc_membw/host.p_membw; - if(memory_accesses > calculations) - return memory_accesses; - return calculations; -} - // add the given workunit to a reply. // look up its app, and make sure there's a version for this platform. // Add the app and app_version to the reply also. @@ -373,7 +362,7 @@ void process_request( seconds_to_fill = MIN_SECONDS_TO_SEND; while(seconds_to_fill > 0) { send_work(sreq, reply, *platform, host, ss, wu); - seconds_to_fill -= estimate_seconds(wu, host); + seconds_to_fill -= (int)estimate_duration(wu, host); } }