dbms: addition to prev. revision [#METR-2944].

This commit is contained in:
Alexey Milovidov 2015-02-22 14:25:26 +03:00
parent 0c144eb619
commit e34eb1abcf

View File

@ -144,7 +144,7 @@ struct SettingMaxThreads
if (0 != cpu_identify(&raw_data, &data))
throw Exception("Cannot cpu_identify: " + String(cpuid_error()), ErrorCodes::CPUID_ERROR);
return data.num_cores;
return data.num_cores * data.total_logical_cpus / data.num_logical_cpus;
}
};