Rev1859, Update more active sites first
This commit is contained in:
parent
22eff13fe3
commit
4988d31aff
2 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ class FileServer(ConnectionServer):
|
|||
self.tor_manager.startOnions()
|
||||
|
||||
if not sites_checking:
|
||||
for address, site in self.sites.items(): # Check sites integrity
|
||||
for site in sorted(self.sites.values(), key=lambda site: site.settings.get("modified", 0), reverse=True): # Check sites integrity
|
||||
gevent.spawn(self.checkSite, site, check_files) # Check in new thread
|
||||
time.sleep(2) # Prevent too quick request
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue