Explorar o código

fix: 修正每小时报告触发时间从60秒改为3600秒

skyfffire hai 1 semana
pai
achega
210513cea7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/record/market_data_recorder.py

+ 1 - 1
src/record/market_data_recorder.py

@@ -223,7 +223,7 @@ async def main():
         
         # 检查是否需要打印每小时报告
         current_time = time.time()
-        if current_time - last_hourly_report_time >= 60:  # 3600秒 = 1小时
+        if current_time - last_hourly_report_time >= 3600:  # 3600秒 = 1小时
             if hourly_matches_count:
                 avg_matches = sum(hourly_matches_count) / len(hourly_matches_count)
                 min_matches = min(hourly_matches_count)