X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e016b28393b74cd30a78ebe03eca7e37a51fefd3..1010c9e519409f0eb36971df6c382fc7cc0e2732:/apps/workbench/app/views/projects/_compute_node_status.html.erb diff --git a/apps/workbench/app/views/projects/_compute_node_status.html.erb b/apps/workbench/app/views/projects/_compute_node_status.html.erb index 6ad7ff4384..3de2ab67ab 100644 --- a/apps/workbench/app/views/projects/_compute_node_status.html.erb +++ b/apps/workbench/app/views/projects/_compute_node_status.html.erb @@ -1,9 +1,10 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +

Node status

-<% active_nodes = 0 %>
- <% nodes.sort_by { |n| n.hostname || "" }.each do |n| %> - <% if n.crunch_worker_state.in? ["busy", "idle"] and (Time.now - n[:last_ping_at]) < 3600 %> - <% active_nodes += 1 %> + <% nodes.each do |n| %>
<%= n.hostname %> @@ -15,9 +16,5 @@ <% end %>
- <% end %> - <% end %> - <% if active_nodes == 0 %> - No active nodes <% end %>