Open sergiivorobei opened 8 years ago
@yegor256 seems like there is some weird missing in the script champions.rb
# Get total estimate.
def total
n = @yaml['scope'].size
champs = @yaml['champions']
m = champs.size
k = 0.54
sum = champs.map do |i, e|
total = (e['best-case'].to_i +
e['worst'].to_i +
e['most-likely'].to_i * 4) / 6
Est.log.info "#{i}: (#{e['best-case']} + #{e['worst-case']} +"\
" #{e['most-likely']} * 4) / 6 = #{total}"
total
end.reduce(&:+)
total = sum * k * (n / m)
Est.log.info "#{sum} * #{k} * (#{n} / #{m}) = #{total}"
total.to_i
end
@yegor256 please do something about this issue
@rultor release, tag is 0.3.2
@rultor release, tag is
0.3.2
@yegor256 OK, I will release it now. Please check the progress here
@rultor release, tag is
0.3.2
@yegor256 Done! FYI, the full log is here (took me 9min)
@kennyx46 the bug is fixed, new version released. thanks for reporting!
@kennyx46 please, close the ticket if everything is fine now
Please change line 50 in champions.rb from:
e['worst'].to_i +
to:e['worst-case'].to_i +