Fix hardcoded plugin thread groups size.

I set that for debugging, forgot to remove it.
This commit is contained in:
Oliver Hamlet
2015-06-25 15:03:42 +01:00
parent 98c1cf92d2
commit 322bd0c382
+1 -1
View File
@@ -144,7 +144,7 @@ namespace loot {
unsigned int pluginsPerThread = ceil((double)plugins.size() / threadsToUse);
BOOST_LOG_TRIVIAL(info) << "Loading " << plugins.size() << " plugins using " << threadsToUse << " threads, with up to " << pluginsPerThread << " plugins per thread.";
std::vector<std::vector<std::unordered_map<std::string, Plugin>::iterator>> pluginGroups(4);
std::vector<std::vector<std::unordered_map<std::string, Plugin>::iterator>> pluginGroups(threadsToUse);
size_t pluginGroup = 0;
for (auto it = plugins.begin(); it != plugins.end(); ++it) {
if (pluginGroups[pluginGroup].size() == pluginsPerThread) {