From d167788f296e7fae06cf0ffca97f4601918b8893 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Wed, 20 Mar 2013 10:04:25 -0700 Subject: [PATCH] Further pushing out feed updates. --- apps/rss_feeds/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/rss_feeds/models.py b/apps/rss_feeds/models.py index bdc43d344..679988c76 100644 --- a/apps/rss_feeds/models.py +++ b/apps/rss_feeds/models.py @@ -1230,7 +1230,7 @@ class Feed(models.Model): # .5 hours for 2 subscribers. # .25 hours for 3 subscribers. # 1 min for 10 subscribers. - subscriber_bonus = 6 * 60 / max(.167, max(0, self.active_subscribers)**3) + subscriber_bonus = 12 * 60 / max(.167, max(0, self.active_subscribers)**3) if self.premium_subscribers > 0: subscriber_bonus /= min(self.active_subscribers+self.premium_subscribers, 5) @@ -1242,13 +1242,13 @@ class Feed(models.Model): slow_punishment = 2 * self.last_load_time elif self.last_load_time >= 200: slow_punishment = 6 * self.last_load_time - total = max(5, int(updates_per_day_delay + subscriber_bonus + slow_punishment)) + total = max(10, int(updates_per_day_delay + subscriber_bonus + slow_punishment)) - if self.active_premium_subscribers > 3: + if self.active_premium_subscribers > 5: total = min(total, 60) # 1 hour minimum for premiums if ((self.stories_last_month == 0 or self.average_stories_per_month == 0)): - total = total * random.randint(1, 12) + total = total * random.randint(1, 24) if self.is_push: total = total * 20