shrink story hotness window to 24 hours

This commit is contained in:
joshua stein 2014-03-20 11:41:43 -05:00
parent 4c0aaf7c2e
commit 6f30d99581

View file

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