- scheduler: <max_wus_in_progress> option wasn't working,

because the reply.req structure was getting zeroed
    AFTER nresults_on_host was being set.


svn path=/trunk/boinc/; revision=13712
This commit is contained in:
David Anderson 2007-09-28 18:27:02 +00:00
parent 89842eca33
commit a1590ff580
5 changed files with 14 additions and 13 deletions

View File

@ -8929,4 +8929,12 @@ Charlie 28 Sep 2007
api/
graphics2_unix.C
David 28 Sept 2007
- scheduler: <max_wus_in_progress> option wasn't working,
because the reply.req structure was getting zeroed
AFTER nresults_on_host was being set.
sched/
handle_request.C
sched_send.C

View File

@ -10,16 +10,6 @@
// 7 unix date
$win = array(
array(
'http://www.skipsjunk.com/info/boincdv.html',
'BOINC Debt Viewer',
'0.3.06',
'BOINC Debt Viewer is a small utility that displays the debt values for each project on a a BOINC host',
'http://www.skipsjunk.com/info/boincdv.html',
'Windows',
'',
1168202706
),
array(
'http://www.weebl00.nl/leiterow/zowtar/BOINC/',
'BOINC mIRC',

View File

@ -160,7 +160,8 @@ echo "
";
language("Belgium (Dutch/French/English)", array(
site("http://www.boinc.be", "www.boinc.be")
site("http://www.boinc.be", "www.boinc.be"),
seti("http://icewolves.plid.be", "IceWolves"),
));
language("Catalan", array(
site("http://www.boinc.cat", "BOINC.cat"),

View File

@ -1232,6 +1232,8 @@ void process_request(
HOST initial_host;
unsigned int i;
memset(&reply.wreq, 0, sizeof(reply.wreq));
// if different major version of BOINC, just send a message
//
if (wrong_core_client_version(sreq, reply)

View File

@ -718,6 +718,7 @@ bool SCHEDULER_REPLY::work_needed(bool locality_sched) {
}
}
fprintf(stderr, "mwip %d nroh %d\n", config.max_wus_in_progress, wreq.nresults_on_host);
if (config.max_wus_in_progress) {
if (wreq.nresults_on_host >= config.max_wus_in_progress) {
log_messages.printf(
@ -908,7 +909,6 @@ void send_work(
) {
char helpful[512];
memset(&reply.wreq, 0, sizeof(reply.wreq));
reply.wreq.disk_available = max_allowable_disk(sreq, reply);
reply.wreq.core_client_version = sreq.core_client_major_version*100
+ sreq.core_client_minor_version;