Merge branch 'master' of https://github.com/danibaena/consul into danibaena-master
This commit is contained in:
@@ -17,7 +17,7 @@ module ScoreCalculator
|
||||
end
|
||||
|
||||
def self.confidence_score(votes_total, votes_up)
|
||||
return 0 unless votes_total > 0
|
||||
return 1 unless votes_total > 0
|
||||
|
||||
votes_total = votes_total.to_f
|
||||
votes_up = votes_up.to_f
|
||||
|
||||
Reference in New Issue
Block a user