mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
dbms: addition to prev. revision [#METR-2944].
This commit is contained in:
parent
0c144eb619
commit
e34eb1abcf
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user