1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Add booted_workers to stats response

This commit is contained in:
rubencaro 2014-02-21 11:59:06 +01:00
parent f8d49e86ab
commit 350ba6f3c7

View file

@ -249,7 +249,7 @@ module Puma
end
def stats
%Q!{ "workers": #{@workers.size}, "phase": #{@phase} }!
%Q!{ "workers": #{@workers.size}, "phase": #{@phase}, "booted_workers": #{@workers.count{|w| w.booted?}} }!
end
def preload?