mirror of https://github.com/BOINC/boinc.git
- client: fix crash with <ncpus>0</ncpus>
svn path=/trunk/boinc/; revision=19208
This commit is contained in:
parent
796e3be9be
commit
a7b32b486e
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue