- client: fix crash with <ncpus>0</ncpus>

svn path=/trunk/boinc/; revision=19208
This commit is contained in:
David Anderson 2009-09-29 02:12:35 +00:00
parent 796e3be9be
commit a7b32b486e
2 changed files with 7 additions and 0 deletions

View File

@ -8229,3 +8229,9 @@ David 28 Sept 2009
user.inc
sched/
start
David 28 Sept 2009
- client: fix crash with <ncpus>0</ncpus>
client/
work_fetch.h

View File

@ -128,6 +128,7 @@ struct BUSY_TIME_ESTIMATOR {
// the least busy instance
//
inline double get_busy_time() {
if (!ninstances) return 0;
double best = busy_time[0];
for (int i=1; i<ninstances; i++) {
if (busy_time[i] < best) {