Widen default splay width to content interval

This commit is contained in:
Alexander Olofsson 2024-09-16 20:40:13 +02:00
parent 08b048540c
commit a1a7cc80cf
Signed by: ace
GPG key ID: D439C9470CB04C73

View file

@ -228,7 +228,7 @@ module FicTracker::Models
# chapters.each(&:refresh_content!) # chapters.each(&:refresh_content!)
end end
def apply_splay!(max: 1 * 60 * 60) def apply_splay!(max: CONTENT_REFRESH_INTERVAL)
self.last_metadata_refresh += rand(0..max) self.last_metadata_refresh += rand(0..max)
self.last_content_refresh += rand(0..max) self.last_content_refresh += rand(0..max)
end end