- assimilator: fix --one_pass bug (from Bernd)

svn path=/trunk/boinc/; revision=20627
This commit is contained in:
David Anderson 2010-02-18 17:58:05 +00:00
parent a6dca1453e
commit a9a2034a5c
2 changed files with 13 additions and 6 deletions

View File

@ -1255,3 +1255,9 @@ David 17 Feb 2010
html/inc/
prefs.inc
David 18 Feb 2010
- assimilator: fix --one_pass bug (from Bernd)
sched/
assimilator.cpp

View File

@ -76,7 +76,7 @@ void usage(char** argv) {
}
// assimilate all WUs that need it
// return nonzero if did anything
// return nonzero (true) if did anything
//
bool do_pass(APP& app) {
DB_WORKUNIT wu;
@ -273,12 +273,13 @@ int main(int argc, char** argv) {
exit(1);
}
install_stop_signal_handler();
while (1) {
if (!do_pass(app)) {
if (one_pass) break;
sleep(sleep_interval);
do {
if (!do_pass(app)) {
if (!one_pass) {
sleep(sleep_interval);
}
}
}
} while (!one_pass);
}