Project

General

Profile

Feature #42673 ยป 42673.patch

Go MAEDA, 2025-05-05 10:15

View differences:

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)
    (1-1/1)