Fixed UV thread pool size

This commit is contained in:
SChernykh 2022-12-26 19:52:15 +01:00
parent a1ec97a221
commit 421e087d81

View file

@ -160,7 +160,7 @@ private:
#define putenv _putenv
#endif
const uint32_t N = std::max(std::min(std::thread::hardware_concurrency(), 4U), 8U);
const uint32_t N = std::min(std::max(std::thread::hardware_concurrency(), 4U), 8U);
char buf[40] = {};
log::Stream s(buf);