mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Cutting refresh delays by more than half.
This commit is contained in:
parent
45cf8f5cf8
commit
71c0ec32dc
1 changed files with 2 additions and 2 deletions
|
@ -708,7 +708,7 @@ class Feed(models.Model):
|
|||
# 2 subscribers:
|
||||
# 1 update per day = 4.5 hours
|
||||
# 10 updates = 55 minutes
|
||||
updates_per_day_delay = 6 * 60 / max(.25, ((max(0, self.active_subscribers)**.20)
|
||||
updates_per_day_delay = 4 * 60 / max(.25, ((max(0, self.active_subscribers)**.20)
|
||||
* (updates_per_day**.7)))
|
||||
if self.premium_subscribers > 0:
|
||||
updates_per_day_delay /= 6
|
||||
|
@ -718,7 +718,7 @@ class Feed(models.Model):
|
|||
# 7 hours for 2 subscribers.
|
||||
# 3 hours for 3 subscribers.
|
||||
# 25 min for 10 subscribers.
|
||||
subscriber_bonus = 24 * 60 / max(.167, max(0, self.active_subscribers)**2.35)
|
||||
subscriber_bonus = 12 * 60 / max(.167, max(0, self.active_subscribers)**2.35)
|
||||
if self.premium_subscribers > 0:
|
||||
subscriber_bonus /= 6
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue