Doubling random factor in feed fetch times to relieve strain.

This commit is contained in:
Samuel Clay 2011-08-24 10:27:21 -07:00
parent ffe3653c37
commit a8a10e5c6c

View file

@ -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