From d502a64507fbcfbbd811d6e54c43dd1e6f3eca9b Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 17 Nov 2015 09:50:50 +0100 Subject: [PATCH] increases time units for hot scores --- lib/score_calculator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/score_calculator.rb b/lib/score_calculator.rb index 7d77e82d6..a646c467f 100644 --- a/lib/score_calculator.rb +++ b/lib/score_calculator.rb @@ -2,7 +2,7 @@ module ScoreCalculator EPOC = Time.new(2015, 6, 15) COMMENT_WEIGHT = 1.0/20 # 1 positive vote / x comments - TIME_UNIT = 12.hours.to_f + TIME_UNIT = 48.hours.to_f def self.hot_score(date, votes_total, votes_up, comments_count) total = (votes_total + COMMENT_WEIGHT * comments_count).to_f