aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkruall <kruall@ydb.tech>2023-06-19 21:48:26 +0300
committerkruall <kruall@ydb.tech>2023-06-19 21:48:26 +0300
commit198c19d39cd1851d9f95d9fe742d3f920366abdf (patch)
tree4acbf3c77cf1cdf2a73bc861fcc73839e57ae541
parenta327d6178a236f488f153a706fb4fed174b1b863 (diff)
downloadydb-198c19d39cd1851d9f95d9fe742d3f920366abdf.tar.gz
Fix build for win,
-rw-r--r--library/cpp/actors/core/harmonizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/actors/core/harmonizer.cpp b/library/cpp/actors/core/harmonizer.cpp
index 7842a47126..7e350ac2cb 100644
--- a/library/cpp/actors/core/harmonizer.cpp
+++ b/library/cpp/actors/core/harmonizer.cpp
@@ -490,9 +490,9 @@ void THarmonizer::HarmonizeImpl(ui64 ts) {
}
TPoolInfo &pool = Pools[poolIdx];
- i64 threadCount = pool.GetThreadCount();
- size_t additionalThreadsCount = Max(0L, threadCount - pool.DefaultThreadCount);
- size_t currentTakingAwayThreads = Min(additionalThreadsCount, currentTakingAwayThreads);
+ size_t threadCount = pool.GetThreadCount();
+ size_t additionalThreadsCount = Max<size_t>(0L, threadCount - pool.DefaultThreadCount);
+ size_t currentTakingAwayThreads = Min(additionalThreadsCount, takingAwayThreads);
if (!currentTakingAwayThreads) {
continue;