Skip to content

Commit

Permalink
[webui] Don't sort empty worker list.
Browse files Browse the repository at this point in the history
The corresponding view already seems to check that, the action did not.
  • Loading branch information
saschpe committed Oct 25, 2011
1 parent b5ad002 commit 6317b49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/app/controllers/monitor_controller.rb
Expand Up @@ -36,7 +36,8 @@ def index
workers[hostname]['_arch'] = barch
workers[hostname][subid] = id
end
@workers_sorted = workers.sort {|a,b| a[0] <=> b[0] }
@workers_sorted = {}
@workers_sorted = workers.sort {|a,b| a[0] <=> b[0] } if workers
@available_arch_list = @available_architectures.each.map{|arch| arch.name}
end
end
Expand Down

0 comments on commit 6317b49

Please sign in to comment.