Description:
fix bug on calculating best of each lanuage
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r438:1c02c7fc8a89 - - 1 file changed: 1 inserted, 1 deleted
@@ -164,7 +164,7 | |||||
|
164 |
|
164 | ||
|
165 | #sum into best |
|
165 | #sum into best |
|
166 | if @by_lang and @by_lang.first |
|
166 | if @by_lang and @by_lang.first |
|
167 | - @best = @by_lang.first[1] |
|
167 | + @best = @by_lang.first[1].clone |
|
168 | @by_lang.each do |lang,prop| |
|
168 | @by_lang.each do |lang,prop| |
|
169 | if @best[:runtime][:value] >= prop[:runtime][:value] |
|
169 | if @best[:runtime][:value] >= prop[:runtime][:value] |
|
170 | @best[:runtime] = prop[:runtime] |
|
170 | @best[:runtime] = prop[:runtime] |
You need to be logged in to leave comments.
Login now