File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,8 @@ def get_data_for_burndown_chart
161
161
total_logged_hours [ index ] += logged_hours_per_issue [ 0 ] [ index ]
162
162
163
163
if issues_per_date [ index ] > 0
164
- total_done [ index ] *= issues_per_date [ index ] - estimated_count
165
- total_done [ index ] += ( 1 - ( total_remaining_hours [ index ] / total_estimated_hours [ index ] ) ) * issues_per_date [ index ]
166
- total_done [ index ] /= issues_per_date [ index ] / 100.0
164
+ total_done [ index ] += ( 1 - ( total_remaining_hours [ index ] / total_estimated_hours [ index ] ) ) * 100 * estimated_count if total_estimated_hours [ index ] > 0
165
+ total_done [ index ] /= issues_per_date [ index ]
167
166
end
168
167
169
168
total_predicted_hours [ index ] = total_remaining_hours [ index ] + total_logged_hours [ index ]
You can’t perform that action at this time.
0 commit comments