Fix cleanup sites with no modified date
This commit is contained in:
parent
ee30f78ab0
commit
97d1d0d63b
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class FileServer(ConnectionServer):
|
||||||
site.retryBadFiles()
|
site.retryBadFiles()
|
||||||
|
|
||||||
if not startup: # Don't do it at start up because checkSite already has needConnections at start up.
|
if not startup: # Don't do it at start up because checkSite already has needConnections at start up.
|
||||||
if time.time() - site.settings.get("modified") < 60 * 60 * 24 * 7:
|
if time.time() - site.settings.get("modified", 0) < 60 * 60 * 24 * 7:
|
||||||
# Keep active connections if site has been modified witin 7 days
|
# Keep active connections if site has been modified witin 7 days
|
||||||
connected_num = site.needConnections(check_site_on_reconnect=True)
|
connected_num = site.needConnections(check_site_on_reconnect=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue