Skip to content

Commit

Permalink
Merge pull request celluloid#131 from zanker/patch-1
Browse files Browse the repository at this point in the history
Added total_busy and total_idle stat calls for the pool manager
  • Loading branch information
tarcieri committed Dec 8, 2012
2 parents 2daedd2 + f4bec5f commit 5cee012
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/celluloid/pool_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ def size
@size
end

def busy_size
@busy.length
end

def idle_size
@idle.length
end

# Provision a new worker
def __provision_worker
while @idle.empty?
Expand Down

0 comments on commit 5cee012

Please sign in to comment.