This commit is contained in:
Tor Lillqvist 2016-04-12 14:48:26 +03:00
parent 8dcd7d22e4
commit 9086f378d8
2 changed files with 3 additions and 3 deletions

View file

@ -73,12 +73,12 @@ private:
const auto count = std::stoi(tokens[1]);
if (count > 0)
{
Log::info("Spawning " + tokens[1] + " children per request.");
Log::info("Spawning " + tokens[1] + " " + (count == 1 ? "child" : "children") + " per request.");
ForkCounter = count;
}
else
{
Log::warn("Cannot spawn " + std::to_string(count) + " children as requested.");
Log::warn("Cannot spawn " + tokens[1] + " children as requested.");
}
}
}

View file

@ -754,7 +754,7 @@ public:
auto ws = std::make_shared<WebSocket>(request, response);
std::unique_lock<std::mutex> lock(newChildrenMutex);
newChildren.emplace_back(std::make_shared<ChildProcess>(pid, ws));
Log::info("Have " + std::to_string(newChildren.size()) + " children.");
Log::info("Have " + std::to_string(newChildren.size()) + " " + (newChildren.size() == 1 ? "child" : "children") + ".");
newChildrenCV.notify_one();
UnitWSD::get().newChild();
return;