fix memory threshold

This commit is contained in:
jxxghp
2025-06-08 11:14:16 +08:00
parent d840ed6c5a
commit 83a8c8b42b
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
from app.core.config import settings
from app.helper.memory import MemoryHelper
@@ -8,7 +7,6 @@ def init_memory_manager():
"""
memory_manager = MemoryHelper()
# 设置内存阈值和启动监控
memory_manager.set_threshold(settings.CONF['memory'])
memory_manager.start_monitoring()