File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ std::vector<FrequencyRange> Config::ignoredRanges() const {
4242 return ranges;
4343}
4444int Config::recordersCount () const {
45- const auto max_workers = static_cast <int >(std::thread::hardware_concurrency () / 2 );
45+ const auto max_workers = static_cast <int >(std::thread::hardware_concurrency ());
46+ const auto auto_workers = max_workers / 2 ;
4647 const auto workers = std::max (0 , std::min (m_fileConfig.workers , max_workers));
47- return workers == 0 ? max_workers : workers;
48+ return workers == 0 ? auto_workers : workers;
4849}
4950Frequency Config::recordingBandwidth () const { return m_fileConfig.recording .min_sample_rate ; }
5051std::chrono::milliseconds Config::recordingMinTime () const { return m_fileConfig.recording .min_time_ms ; }
You can’t perform that action at this time.
0 commit comments