Add one more check when shared memory is full.

svn path=/trunk/boinc/; revision=13017
This commit is contained in:
Charlie Fenton 2007-06-25 13:33:53 +00:00
parent 34a9090705
commit b5a1463ed4
1 changed files with 7 additions and 0 deletions

View File

@ -553,6 +553,13 @@ void CLIENT_STATE::schedule_cpus() {
} else {
atp->too_large = false;
}
if (gstate.retry_shmem_time < gstate.now) {
if (atp->app_client_shm.shm == NULL) {
atp->needs_shmem = true;
continue;
}
atp->needs_shmem = false;
}
ram_left -= atp->procinfo.working_set_size_smoothed;
}
double xx = (rp->project->resource_share / rrs) * expected_pay_off;