20% articles opnieuw proberen in te lezen ipv 10%
This commit is contained in:
parent
57a1062089
commit
ef378bf7fe
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $Dwarf: article.rb,v 1.113 2005/05/10 20:51:06 ward Exp $
|
||||
# $Dwarf: article.rb,v 1.114 2005/05/12 07:39:53 ward Exp $
|
||||
# $Source$
|
||||
|
||||
#
|
||||
|
|
@ -248,9 +248,9 @@ def get_articles(cachedir=false)
|
|||
if @connections[server]["skip_ids"].max && @connections[server]["skip_ids"].max
|
||||
articles = @connections[server]["last"] - @connections[server]["first"]
|
||||
if articles > 10000
|
||||
fillerend = (@connections[server]["skip_ids"].max - (articles/10)).to_i
|
||||
fillerend = (@connections[server]["skip_ids"].max - (articles/5)).to_i
|
||||
else
|
||||
fillerend = @connections[server]["skip_ids"].max - 1000
|
||||
fillerend = @connections[server]["skip_ids"].max - 2000
|
||||
end
|
||||
if @connections[server]["skip_ids"].min && fillerend > @connections[server]["skip_ids"].min
|
||||
@connections[server]["skip_ids"] = @connections[server]["skip_ids"].union("#{@connections[server]["skip_ids"].min}-#{fillerend}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue