Skip to content

Commit

Permalink
What's an order of magnitude or two, really?
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed May 22, 2018
1 parent 7264de8 commit f074426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/post.rb
Expand Up @@ -122,10 +122,10 @@ def autoflag
min_weight: post.reasons.sum(&:weight)
)

accuracy = fake_flag_condition.accuracy # Decimal number, like 0.998
accuracy = fake_flag_condition.accuracy # Decimal number, like 99.8

# If the accuracy is higher than all 6 thresholds (indicating 6 flags), index will be null
scaled_max = scaled_maxes.index { |n| n.to_f > accuracy * 100 } || FlagSetting['max_flags'].to_i
scaled_max = scaled_maxes.index { |n| n.to_f > accuracy } || FlagSetting['max_flags'].to_i
else
scaled_max = FlagSetting['max_flags'].to_i
end
Expand Down

0 comments on commit f074426

Please sign in to comment.