Project

General

Profile

Feature #42673 ยป 42673.patch

Go MAEDA, 2025-05-05 10:15

View differences:

app/models/version.rb
done = self.open(open).sum do |c|
estimated = c.total_estimated_hours.to_f
estimated = estimated_average unless estimated > 0.0
ratio = c.closed? ? 100 : (c.done_ratio || 0)
ratio = open ? (c.done_ratio || 0) : 100
estimated * ratio
end
progress = done / (estimated_average * issues_count)
    (1-1/1)