修复语法错误:内存检查逻辑移回try块内,修复空行缩进问题

This commit is contained in:
youpaishidifu
2026-08-06 10:03:50 +08:00
parent 4ef261bfe7
commit 8575b5141b
+1 -1
View File
@@ -1582,7 +1582,7 @@ class MessageMonitor:
logger.debug(f"[ocr] 内存状态:物理 {_phys_used_gb:.1f}/{_phys_total_gb:.1f}GB({_phys_used_pct}%),"
f"页面文件 {_page_used_gb:.1f}/{_page_total_gb:.1f}GB({_page_used_pct}%),"
f"虚拟地址空间 {_virt_avail_gb:.1f}GB可用")
# ⭐ 放宽页面文件百分比阈值:>95% 已用即视为不足(避免内存充足时误判)
# 用户报告提交量81.8%被误判为不足,提高阈值到95%
if _page_used_pct > 95.0: