mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Toning down the regularity of updating feeds by a half.
This commit is contained in:
parent
6eeac428e8
commit
fe7d889a12
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class ProcessFeed:
|
|||
self.feed.feed_title))
|
||||
|
||||
# Use stories per month to calculate next feed update
|
||||
updates_per_day = max(30, self.feed.stories_per_month) / 30.0 * 12
|
||||
updates_per_day = max(30, self.feed.stories_per_month*self.feed.stories_per_month) / 30.0 * 6
|
||||
minutes_to_next_update = 60 * 24 / updates_per_day
|
||||
random_factor = random.randint(0,int(minutes_to_next_update/4))
|
||||
next_scheduled_update = datetime.datetime.now() + datetime.timedelta(
|
||||
|
|
Loading…
Add table
Reference in a new issue