Skip to content

Commit 3d9814d

Browse files
Adam Cookedefunkt
authored andcommitted
fix working page in web interface so counts are displayed correctly
1 parent ff5fc9b commit 3d9814d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/resque/server/views/working.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<% else %>
2929

30-
<% workers = resque.working %>
30+
<% workers = resque.working.reject { |w| w.idle? } %>
3131
<h1 class='wi'><%= workers.size %> of <%= resque.workers.size %> Workers Working</h1>
3232
<p class='intro'>The list below contains all workers which are currently running a job.</p>
3333
<table class='workers'>
@@ -45,7 +45,6 @@
4545

4646
<% for worker in workers.sort_by { |w| w.job['run_at'] ? w.job['run_at'] : '' } %>
4747
<% job = worker.job %>
48-
<% next if worker.idle? %>
4948

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

0 commit comments

Comments
 (0)