shrink story hotness window down to 24 hours as we are growing

This commit is contained in:
joshua stein 2012-09-20 10:59:30 -05:00
parent a05421082c
commit 6cb466bc83

View file

@ -252,9 +252,8 @@ class Story < ActiveRecord::Base
seconds = self.created_at.to_i - 398995200
# XXX: while we're slow, allow a window of 36 hours. as the site grows,
# shrink this down to 12 or so.
window = 60 * 60 * 36
# TODO: as the site grows, shrink this down to 12 or so.
window = 60 * 60 * 24
return -(order + (sign * (seconds.to_f / window))).round(7)
end