##// END OF EJS Templates
Fixed: Roadmap percentages not being calculated correctly (Nick Read)....
Jean-Philippe Lang -
r605:7681487af41e
parent child
Show More
@@ -31,7 +31,7
31
31
32 total = issues.size
32 total = issues.size
33 complete = issues.inject(0) {|c,i| i.status.is_closed? ? c + 1 : c }
33 complete = issues.inject(0) {|c,i| i.status.is_closed? ? c + 1 : c }
34 percentComplete = total == 0 ? 100 : (100 / total * complete).floor
34 percentComplete = total == 0 ? 100 : (100.0 / total * complete).floor
35 percentIncomplete = 100 - percentComplete
35 percentIncomplete = 100 - percentComplete
36 %>
36 %>
37 <table class="progress">
37 <table class="progress">
General Comments 0
You need to be logged in to leave comments. Login now