lighttpd/weighttp — pull request #7 by chobits (2013-10-24 07:11:00+00:00)
Title: calculate concur & reqs more easily

Before i is increated to (config.thread_count - 1), rest_concur has been decreased to zero.
In such case, diff is always 1 in loop. It is unnecessary to calculate diff.

Note that original logic '(i == config.thread_count)' is wrong, it should be '(i == config.thread_count - 1)'.