<%= t('Status') %>

<%= s = processes.size; number_with_delimiter(s) %>

<%= t('Processes') %>

<%= x = processes.total_concurrency; number_with_delimiter(x) %>

<%= t('Threads') %>

<%= ws = workers.size; number_with_delimiter(ws) %>

<%= t('Busy') %>

<%= x == 0 ? 0 : ((ws / x.to_f) * 100).round(0) %>%

<%= t('Utilization') %>

<%= format_memory(processes.total_rss) %>

<%= t('RSS') %>

<%= t('Processes') %>

<%= csrf_tag %>
<% lead = processes.leader %> <% processes.each do |process| %> <% end %>
<%= t('Name') %> <%= t('Started') %> <%= t('RSS') %>? <%= t('Threads') %> <%= t('Busy') %>  
<%= "#{process['hostname']}:#{process['pid']}" %> <%= process.tag %> <% process.labels.each do |label| %> <%= label %> <% end %> <% if process.stopping? %> quiet <% end %> <% if process.identity == lead %> leader <% end %>
<%= "#{t('Queues')}: " %> <%= process['queues'] * ", " %>
<%= relative_time(Time.at(process['started_at'])) %> <%= format_memory(process['rss'].to_i) %> <%= process['concurrency'] %> <%= process['busy'] %>
<%= csrf_tag %>
<% unless process.stopping? %><% end %>

<%= t('Jobs') %>

<% workers.each do |process, thread, msg| %> <% job = Sidekiq::Job.new(msg['payload']) %> <% end %>
<%= t('Process') %> <%= t('TID') %> <%= t('JID') %> <%= t('Queue') %> <%= t('Job') %> <%= t('Arguments') %> <%= t('Started') %>
<%= process %> <%= thread %> <%= job.jid %> <%= msg['queue'] %> <%= job.display_class %> <%= display_tags(job, nil) %>
<%= display_args(job.display_args) %>
<%= relative_time(Time.at(msg['run_at'])) %>