Changeset 966

Show
Ignore:
Timestamp:
02/19/08 23:59:41 (7 months ago)
Author:
evanweaver
Message:

Close #10 (@throttle wrongly treated as seconds instead of 100th of seconds).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable_1-1/lib/mongrel.rb

    r911 r966  
    9797      @port = port 
    9898      @workers = ThreadGroup.new 
    99       @throttle = throttle 
     99      @throttle = throttle / 100.0 
    100100      @num_processors = num_processors 
    101101      @timeout = timeout 
     
    287287                @workers.add(thread) 
    288288   
    289                 sleep @throttle/100.0 if @throttle > 0 
     289                sleep @throttle if @throttle > 0 
    290290              end 
    291291            rescue StopServer