Story: take hotness window back down to 36, 48 is a bit stale

This commit is contained in:
joshua stein 2015-01-23 14:09:36 -06:00
parent c94fd60f77
commit bf928cf62b

View file

@ -159,7 +159,7 @@ class Story < ActiveRecord::Base
end
# TODO: as the site grows, shrink this down to 12 or so.
window = 60 * 60 * 48
window = 60 * 60 * 36
return -((order * sign) + base +
((self.created_at || Time.now).to_f / window)).round(7)