mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: revert preload.
This commit is contained in:
parent
41b60ed53c
commit
d35cf16031
|
|
@ -13,7 +13,7 @@ GC_INTERVAL = 3600
|
|||
def enable_force_gc():
|
||||
collected = gc.collect()
|
||||
maxkb_logger.debug(f"(PID: {CURRENT_PID}) Forced GC ({collected} objects collected)")
|
||||
t = threading.Timer(GC_INTERVAL - random.randint(0, 900), force_gc)
|
||||
t = threading.Timer(GC_INTERVAL - random.randint(0, 900), enable_force_gc)
|
||||
t.daemon = True
|
||||
t.start()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue