Skip to content

Commit

Permalink
[webui] fix crash on build statistics with disk data without disk size
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Apr 17, 2013
1 parent 16ada9a commit fa78bc6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/webui/app/views/package/statistics.html.erb
Expand Up @@ -14,9 +14,11 @@
<% if disk %>
<h1>Disk Statistics</h1>

<p><strong>Maximal used disk space:</strong>
<%= disk['size']['_content'] %> <%= disk['size']['unit'] %>byte
</p>
<% if disk['size'] %>
<p><strong>Maximal used disk space:</strong>
<%= disk['size']['_content'] %> <%= disk['size']['unit'] %>byte
</p>
<% end %>
<% if disk['io_requests'] %>
<p><strong>Number of IO requests:</strong> <%= disk['io_requests'] %> </p>
Expand Down

0 comments on commit fa78bc6

Please sign in to comment.