Skip to content

Commit

Permalink
iterate with stats[:worker_status]
Browse files Browse the repository at this point in the history
  • Loading branch information
QWYNG committed Jan 17, 2023
1 parent e8088f2 commit c644273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/plugin/systemd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def start(launcher)

def status
if clustered?
messages = Array.new(workers) do |i|
common_message(stats[:worker_status][i][:last_status])
messages = stats[:worker_status].map do |worker|
common_message(worker[:last_status])
end.join(',')

"Puma #{Puma::Const::VERSION}: cluster: #{booted_workers}/#{workers}, worker_status: [#{messages}]"
Expand Down

0 comments on commit c644273

Please sign in to comment.