diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index af25e40..0576cfc 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -156,7 +156,7 @@
- <% if !nodes.nil? %> + <% begin %>
<% ping = ((nodes.select{ |node| node["ping"].eql? "true" }.length.to_f / nodes.length.to_f) * 100).to_i %>
@@ -208,7 +208,7 @@
- <% else %> + <% rescue => ex %>
- <% if !volumes.nil? %> + <% begin %>
<% start = ((volumes.select{ |volume| volume["Status"].eql? " Started" }.length.to_f / volumes.length.to_f) * 100).to_i %>
@@ -273,7 +273,7 @@
- <% else %> + <% rescue => ex %>