Skip to content

Commit

Permalink
Merge pull request #10 from macfanatic/7_project_roadmap_infinity
Browse files Browse the repository at this point in the history
Admin::Projects#roadmap had exception in math in certain situations
  • Loading branch information
macfanatic committed Feb 17, 2013
2 parents 4c3bd24 + e3e4d22 commit c7dbbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/projects/_project_information_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
<tr>
<th>Hours / Person</th>
<% hours = (total_hours.to_f / num_assignees.to_f) rescue 0.0 %>
<% hours = 0.0 if hours.nan? %>
<% hours = 0.0 if hours.nan? or hours.infinite? %>
<td><span class="status <%= colorize_hours_per_team_member_for_sprint(hours) %>"><%= number_to_human(hours) %></span></td>
</tr>
<tr>
<th>Tickets / Person</th>
<% hours = (tickets.count.to_f / num_assignees) rescue 0.0 %>
<% hours = 0.0 if hours.nan? %>
<% hours = 0.0 if hours.nan? or hours.infinite? %>
<td><%= number_to_human(hours) %></td>
</tr>
<tr>
Expand Down

0 comments on commit c7dbbef

Please sign in to comment.