From ce62c8ace58ab6179c5d8c8ee064c5ccf0a98292 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 3 Mar 2009 17:45:03 +0000 Subject: [PATCH] - client: fix message: "idle instance" => "starved" svn path=/trunk/boinc/; revision=17451 --- checkin_notes | 6 ++++++ client/work_fetch.cpp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9d45db41f6..8eb8a9c580 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2557,3 +2557,9 @@ Rom 3 Mar 2009 curl/ + +David 3 Mar 2009 + - client: fix message: "idle instance" => "starved" + + client/ + work_fetch.cpp diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index a17404374d..c80cc114ae 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -161,10 +161,10 @@ PROJECT* RSC_WORK_FETCH::choose_project(int criterion) { switch (criterion) { case FETCH_IF_DEVICE_IDLE: - if (!nidle_now) return NULL; + if (nidle_now == 0) return NULL; break; case FETCH_IF_SHORTFALL: - if (!shortfall) return NULL; + if (shortfall == 0) return NULL; break; } @@ -217,7 +217,7 @@ PROJECT* RSC_WORK_FETCH::choose_project(int criterion) { case FETCH_IF_PROJECT_STARVED: if (log_flags.work_fetch_debug) { msg_printf(pbest, MSG_INFO, - "chosen: %s idle instance", rsc_name(rsc_type) + "chosen: %s starved", rsc_name(rsc_type) ); } req = share_request(pbest);