Feature #42673 ยป 42673.patch
app/models/version.rb | ||
---|---|---|
106 | 106 |
done = self.open(open).sum do |c| |
107 | 107 |
estimated = c.total_estimated_hours.to_f |
108 | 108 |
estimated = estimated_average unless estimated > 0.0 |
109 |
ratio = c.closed? ? 100 : (c.done_ratio || 0)
|
|
109 |
ratio = open ? (c.done_ratio || 0) : 100
|
|
110 | 110 |
estimated * ratio |
111 | 111 |
end |
112 | 112 |
progress = done / (estimated_average * issues_count) |