mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Cleanup chart db 10 minutes after startup
This commit is contained in:
parent
3d1d5c1151
commit
ef7ee02f65
|
@ -11,7 +11,7 @@ from ChartCollector import ChartCollector
|
|||
|
||||
if "db" not in locals().keys(): # Share on reloads
|
||||
db = ChartDb()
|
||||
gevent.spawn_later(10 * 60 * 60, db.archive)
|
||||
gevent.spawn_later(10 * 60, db.archive)
|
||||
helper.timer(60 * 60 * 6, db.archive)
|
||||
collector = ChartCollector(db)
|
||||
|
||||
|
|
Loading…
Reference in a new issue