diff options
author | kruall <kruall@ydb.tech> | 2023-03-14 21:13:26 +0300 |
---|---|---|
committer | kruall <kruall@ydb.tech> | 2023-03-14 21:13:26 +0300 |
commit | dcc825195faf2ab5cf9aa92d0ff1ae616a5d8a6e (patch) | |
tree | f82739f796e37e5c3e691efbf975452499b473c5 /library/cpp | |
parent | b8e6cf3ea513ef24dadcfab960f0f0adc1ff4caf (diff) | |
download | ydb-dcc825195faf2ab5cf9aa92d0ff1ae616a5d8a6e.tar.gz |
Fix cpu count metric,
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/core/actorsystem.h | 2 | ||||
-rw-r--r-- | library/cpp/actors/core/config.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/actors/core/actorsystem.h b/library/cpp/actors/core/actorsystem.h index b506a1e360..0bc788f9be 100644 --- a/library/cpp/actors/core/actorsystem.h +++ b/library/cpp/actors/core/actorsystem.h @@ -130,7 +130,7 @@ namespace NActors { std::optional<ui32> GetThreadsOptional(const ui32 poolId) const { if (Y_LIKELY(Executors)) { if (Y_LIKELY(poolId < ExecutorsCount)) { - return Executors[poolId]->GetThreads(); + return Executors[poolId]->GetDefaultThreadCount(); } else { return {}; } diff --git a/library/cpp/actors/core/config.h b/library/cpp/actors/core/config.h index 30a5050197..650b1f39f5 100644 --- a/library/cpp/actors/core/config.h +++ b/library/cpp/actors/core/config.h @@ -131,7 +131,7 @@ namespace NActors { std::optional<ui32> GetThreadsOptional(ui32 poolId) const { for (const auto& p : Basic) { if (p.PoolId == poolId) { - return p.Threads; + return p.DefaultThreadCount; } } for (const auto& p : IO) { |