Skip to content

Commit

Permalink
fix working page in web interface so counts are displayed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Cooke authored and defunkt committed Aug 24, 2010
1 parent ff5fc9b commit 3d9814d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/resque/server/views/working.erb
Expand Up @@ -27,7 +27,7 @@

<% else %>
<% workers = resque.working %>
<% workers = resque.working.reject { |w| w.idle? } %>
<h1 class='wi'><%= workers.size %> of <%= resque.workers.size %> Workers Working</h1>
<p class='intro'>The list below contains all workers which are currently running a job.</p>
<table class='workers'>
Expand All @@ -45,7 +45,6 @@
<% for worker in workers.sort_by { |w| w.job['run_at'] ? w.job['run_at'] : '' } %>
<% job = worker.job %>
<% next if worker.idle? %>

<tr>
<td class='icon'><img src="<%=u state = worker.state %>.png" alt="<%= state %>" title="<%= state %>"></td>
Expand Down

0 comments on commit 3d9814d

Please sign in to comment.