shrink story hotness window to 24 hours
This commit is contained in:
parent
4c0aaf7c2e
commit
6f30d99581
|
@ -130,7 +130,7 @@ class Story < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: as the site grows, shrink this down to 12 or so.
|
# 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)
|
return -((order * sign) + (self.created_at.to_f / window)).round(7)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue