mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Boosting feed fetches due to faster feed ingestion.
This commit is contained in:
parent
54a0da95bd
commit
4a695fd710
1 changed files with 4 additions and 4 deletions
|
@ -2056,12 +2056,12 @@ class Feed(models.Model):
|
|||
# SpD = 0 Subs > 1: t = 60 * 3 # 30158 * 1440/(60*3) = 241264
|
||||
# SpD = 0 Subs = 1: t = 60 * 24 # 514131 * 1440/(60*24) = 514131
|
||||
if spd >= 1:
|
||||
if subs > 10:
|
||||
if subs >= 10:
|
||||
total = 6
|
||||
elif subs > 1:
|
||||
total = 15
|
||||
else:
|
||||
total = 60
|
||||
total = 45
|
||||
elif spd > 0:
|
||||
if subs > 1:
|
||||
total = 60 - (spd * 60)
|
||||
|
@ -2098,9 +2098,9 @@ class Feed(models.Model):
|
|||
if len(fetch_history['push_history']):
|
||||
total = total * 12
|
||||
|
||||
# 12 hour max for premiums, 48 hour max for free
|
||||
# 6 hour max for premiums, 48 hour max for free
|
||||
if subs >= 1:
|
||||
total = min(total, 60*12*1)
|
||||
total = min(total, 60*6*1)
|
||||
else:
|
||||
total = min(total, 60*24*2)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue