Fix Linux build.

This commit is contained in:
XMRig 2017-05-03 15:03:33 +03:00
parent 0c752ee018
commit dfbfde5b22
2 changed files with 2 additions and 32 deletions

View file

@ -46,7 +46,7 @@ int affine_to_cpu_mask(int id, unsigned long mask)
cpu_set_t set;
CPU_ZERO(&set);
for (unsigned i = 0; i < cpu_info.count; i++) {
for (unsigned i = 0; i < cpu_info.total_logical_cpus; i++) {
if (mask & (1UL << i)) {
CPU_SET(i, &set);
}