In anticipation of more new trackers (6) and significantly more torrents
(2 million -> 20 million).
Required seedleech freshness now updated to guarantee very fresh counts
for popular torrents at the expense of torrents with 1-3 seeds.
I also again changed the sleep time for workfetcher with minseed 0: computing all torrents without a trackerdata entry is computionally expensive, impossible with 20 mil torrents.
rows,err=db.Query("SELECT infohash FROM trackerdata WHERE tracker = $1 AND seeders > $2 AND scraped < $3 LIMIT 630",tracker,minseed,freshlimit)
}else{
time.Sleep(time.Duration(int64(rand.Intn(3000))*int64(time.Second)))//sleep for random time between 0 mins and 50 mins
time.Sleep(time.Duration(int64(rand.Intn(12000))*int64(time.Second)))//sleep for random time between 0 mins and 200 mins
rows,err=db.Query("SELECT infohash FROM torrent WHERE NOT EXISTS (SELECT from trackerdata WHERE infohash = torrent.infohash AND tracker = $1 AND scraped > $2) LIMIT 6300",tracker,freshlimit)