From 07f776dd632ba1c05735131f3d1ebabe3cca4ee9 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Mon, 3 Jan 2005 17:18:32 +0000 Subject: [PATCH] Added a command line option to make single pass with a small number of WU for testing purposes. svn path=/trunk/boinc/; revision=4986 --- sched/assimilator.C | 8 +++++++- sched/validator.C | 12 +++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/sched/assimilator.C b/sched/assimilator.C index 1abb4bb664..a5fe7c212e 100644 --- a/sched/assimilator.C +++ b/sched/assimilator.C @@ -49,6 +49,8 @@ bool noinsert = false; #define SLEEP_INTERVAL 10 +int one_pass_N_WU=0; + // assimilate all WUs that need it // return nonzero if did anything // @@ -62,7 +64,8 @@ bool do_pass(APP& app) { check_stop_daemons(); - sprintf(buf, "where appid=%d and assimilate_state=%d limit 1000", app.id, ASSIMILATE_READY); + sprintf(buf, "where appid=%d and assimilate_state=%d limit %d", app.id, ASSIMILATE_READY, + one_pass_N_WU ? one_pass_N_WU : 1000); while (!wu.enumerate(buf)) { vector results; // must be inside while()! @@ -133,6 +136,9 @@ int main(int argc, char** argv) { for (i=1; i