shrink story hotness window down to 24 hours as we are growing
This commit is contained in:
parent
a05421082c
commit
6cb466bc83
|
@ -252,9 +252,8 @@ class Story < ActiveRecord::Base
|
||||||
|
|
||||||
seconds = self.created_at.to_i - 398995200
|
seconds = self.created_at.to_i - 398995200
|
||||||
|
|
||||||
# XXX: while we're slow, allow a window of 36 hours. as the site grows,
|
# TODO: as the site grows, shrink this down to 12 or so.
|
||||||
# shrink this down to 12 or so.
|
window = 60 * 60 * 24
|
||||||
window = 60 * 60 * 36
|
|
||||||
|
|
||||||
return -(order + (sign * (seconds.to_f / window))).round(7)
|
return -(order + (sign * (seconds.to_f / window))).round(7)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue