mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Close #10 (@throttle wrongly treated as seconds instead of 100th of seconds).
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-1@966 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
3998dcf8a1
commit
ad445e7652
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ module Mongrel
|
|||
@host = host
|
||||
@port = port
|
||||
@workers = ThreadGroup.new
|
||||
@throttle = throttle
|
||||
@throttle = throttle / 100.0
|
||||
@num_processors = num_processors
|
||||
@timeout = timeout
|
||||
end
|
||||
|
@ -286,7 +286,7 @@ module Mongrel
|
|||
thread[:started_on] = Time.now
|
||||
@workers.add(thread)
|
||||
|
||||
sleep @throttle/100.0 if @throttle > 0
|
||||
sleep @throttle if @throttle > 0
|
||||
end
|
||||
rescue StopServer
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue