worker: When stopping workers at reconfig, report the number right.

It was reported as negative number (Stopping -2 workers).
This commit is contained in:
Heikki Hannikainen 2012-10-17 00:02:31 +03:00
parent 11c8394d4e
commit 46576d9c07
1 changed files with 1 additions and 1 deletions

View File

@ -1638,7 +1638,7 @@ void workers_stop(int stop_all)
int stopped = 0;
hlog(LOG_INFO, "Stopping %d worker threads...",
(stop_all) ? workers_running : workers_configured - workers_running);
(stop_all) ? workers_running : workers_running - workers_configured);
while (workers_running > workers_configured || (stop_all && workers_running > 0)) {
hlog(LOG_DEBUG, "Stopping a worker thread...");
/* find the last worker thread and shut it down...