a
This commit is contained in:
parent
c3a14f0f1a
commit
7947101bc4
|
|
@ -169,7 +169,7 @@ class MarketScanner:
|
|||
# 这样可以避免使用过期的交易对,确保每个账户都基于最新市场数据扫描
|
||||
|
||||
# 记录扫描性能(用于监控多用户时的系统压力)
|
||||
scan_duration = time.time() - scan_start_time
|
||||
scan_duration = time.time() - self._scan_start_time
|
||||
logger.info(f"扫描完成,找到 {len(top_n)} 个符合条件的交易对,耗时 {scan_duration:.2f}秒")
|
||||
if scan_duration > 60:
|
||||
logger.warning(f"⚠️ 扫描耗时较长({scan_duration:.2f}秒),可能影响系统性能,建议检查缓存命中率")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user