Browse Source

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

skyfffire 1 tuần trước cách đây
mục cha
commit
210513cea7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)