mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Toning down updates on infrequently updated feeds.
This commit is contained in:
parent
936774b654
commit
636e47728f
2 changed files with 4 additions and 2 deletions
|
@ -905,8 +905,8 @@ class Feed(models.Model):
|
|||
# 2 subscribers:
|
||||
# 1 update per day = 1 hours
|
||||
# 10 updates = 20 minutes
|
||||
updates_per_day_delay = 12 * 60 / max(.25, ((max(0, self.active_subscribers)**.35)
|
||||
* (updates_per_month**1.2)))
|
||||
updates_per_day_delay = 12 * 60 / max(.25, ((max(0, self.active_subscribers)**.2)
|
||||
* (updates_per_month**0.25)))
|
||||
if self.premium_subscribers > 0:
|
||||
updates_per_day_delay /= min(self.active_subscribers+self.premium_subscribers, 5)
|
||||
# Lots of subscribers = lots of updates
|
||||
|
|
|
@ -6,6 +6,8 @@ export ZSH=$HOME/.oh-my-zsh
|
|||
# Look in ~/.oh-my-zsh/themes/
|
||||
export ZSH_THEME="risto"
|
||||
|
||||
export DISABLE_AUTO_UPDATE="true"
|
||||
|
||||
# Set to this to use case-sensitive completion
|
||||
export CASE_SENSITIVE="true"
|
||||
export LC_COLLATE='C'
|
||||
|
|
Loading…
Add table
Reference in a new issue