Fix bug: reversed comparison of retry_shmem_time

svn path=/trunk/boinc/; revision=13027
This commit is contained in:
Charlie Fenton 2007-06-26 03:42:49 +00:00
parent 8c4b7e6bc6
commit fa6bb28f68
1 changed files with 3 additions and 3 deletions

View File

@ -509,7 +509,7 @@ void CLIENT_STATE::schedule_cpus() {
atp->too_large = false;
// TODO: merge this chunk of code with its clone
if (gstate.retry_shmem_time < gstate.now) {
if (gstate.retry_shmem_time > gstate.now) {
if (atp->app_client_shm.shm == NULL) {
atp->needs_shmem = true;
continue;
@ -557,7 +557,7 @@ void CLIENT_STATE::schedule_cpus() {
// don't select if it would need a new shared-mem seg
// and we're out of them
//
if (gstate.retry_shmem_time < gstate.now) {
if (gstate.retry_shmem_time > gstate.now) {
if (atp->app_client_shm.shm == NULL) {
atp->needs_shmem = true;
continue;
@ -925,7 +925,7 @@ bool CLIENT_STATE::enforce_schedule() {
// will be available in the next 10 seconds
// (run only tasks which are already attached to shared memory).
//
if (gstate.retry_shmem_time < gstate.now) {
if (gstate.retry_shmem_time > gstate.now) {
request_schedule_cpus("no more shared memory");
}
gstate.retry_shmem_time = gstate.now + 10.0;