mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Doubling random factor in feed fetch times to relieve strain.
This commit is contained in:
parent
ffe3653c37
commit
a8a10e5c6c
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ class Feed(models.Model):
|
|||
slow_punishment = 6 * self.last_load_time
|
||||
total = max(4, int(updates_per_day_delay + subscriber_bonus + slow_punishment))
|
||||
# print "[%s] %s (%s-%s), %s, %s: %s" % (self, updates_per_day_delay, updates_per_day, self.num_subscribers, subscriber_bonus, slow_punishment, total)
|
||||
random_factor = random.randint(0, total) / 4
|
||||
random_factor = random.randint(0, total) / 2
|
||||
|
||||
return total, random_factor
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue