projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11501: A work unit running time with children was only computed calculating its direct
[arvados.git]
/
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 6ad7ff43843e381a7394770a04fc44772333f667..c2f5f39429c13f51b96ba87bf9063967c0b883c2 100644
(file)
--- 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,6
@@
<h4>Node status</h4>
<h4>Node status</h4>
-<% active_nodes = 0 %>
<div class="compute-summary-nodelist">
<div class="compute-summary-nodelist">
- <% 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| %>
<div class="compute-summary">
<a data-toggle="collapse" href="#detail_<%= n.hostname %>" class="compute-summary-head label label-<%= if n.crunch_worker_state == 'busy' then 'primary' else 'default' end %>">
<%= n.hostname %>
<div class="compute-summary">
<a data-toggle="collapse" href="#detail_<%= n.hostname %>" class="compute-summary-head label label-<%= if n.crunch_worker_state == 'busy' then 'primary' else 'default' end %>">
<%= n.hostname %>
@@
-15,9
+12,5
@@
<% end %>
</div>
</div>
<% end %>
</div>
</div>
- <% end %>
- <% end %>
- <% if active_nodes == 0 %>
- No active nodes
<% end %>
</div>
<% end %>
</div>