mirror of https://github.com/BOINC/boinc.git
- assimilator: fix --one_pass bug (from Bernd)
svn path=/trunk/boinc/; revision=20627
This commit is contained in:
parent
a6dca1453e
commit
a9a2034a5c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue