- fix to the above

svn path=/trunk/boinc/; revision=18290
This commit is contained in:
David Anderson 2009-06-04 05:18:43 +00:00
parent 5c81b4a1ff
commit ad254db549
2 changed files with 8 additions and 2 deletions

View File

@ -5042,3 +5042,9 @@ Charlie 3 June 2009
lib/ lib/
coproc.cpp,h coproc.cpp,h
David 3 June 2009
- fix to the above
lib/
coproc.cpp,h

View File

@ -292,9 +292,9 @@ void COPROC_CUDA::get(
if (use_all || !cuda_compare(gpus[i], best, true)) { if (use_all || !cuda_compare(gpus[i], best, true)) {
best.device_nums[best.count] = gpus[i].device_num; best.device_nums[best.count] = gpus[i].device_num;
best.count++; best.count++;
sprintf(buf2, "NVIDIA GPU %d: %s", best.count, buf); sprintf(buf2, "NVIDIA GPU %d: %s", i, buf);
} else { } else {
sprintf(buf2, "NVIDIA GPU %d (not used): %s", best.count, buf); sprintf(buf2, "NVIDIA GPU %d (not used): %s", i, buf);
} }
strings.push_back(string(buf2)); strings.push_back(string(buf2));
} }