From 68000f7266ea05bab89a201779f4f54136fc2ee6 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 10 八月 2023 12:42:30 +0800
Subject: [PATCH] bug修复

---
 l2/l2_data_manager_new.py |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 2b08e87..77054f5 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -408,21 +408,21 @@
         if round(t.time() * 1000) - __start_time > 10:
             __start_time = l2_data_log.l2_time(code, round(t.time() * 1000) - __start_time,
                                                "鑾峰彇m鍊兼暟鎹�楁椂")
-        if True:  # end_index - start_index < 10:
+        if False:  # end_index - start_index < 10:
             cls.__start_compute_buy(code, start_index, end_index, threshold_money, capture_time, is_first_code)
         else:
-            pass
-            # lp = LineProfiler()
-            # lp.enable()
-            # lp_wrap = lp(cls.__start_compute_buy)
-            # lp_wrap(code, start_index, end_index, threshold_money, capture_time, is_first_code)
-            # output = io.StringIO()
-            # lp.print_stats(stream=output)
-            # lp.disable()
-            # with open(
-            #         f"/home/logs/profile/{code}_start_compute_buy_{start_index}_{end_index}.txt",
-            #         'w') as f:
-            #     f.write(output.getvalue())
+            # pass
+            lp = LineProfiler()
+            lp.enable()
+            lp_wrap = lp(cls.__start_compute_buy)
+            lp_wrap(code, start_index, end_index, threshold_money, capture_time, is_first_code)
+            output = io.StringIO()
+            lp.print_stats(stream=output)
+            lp.disable()
+            with open(
+                    f"/home/logs/profile/{code}_start_compute_buy_{start_index}_{end_index}.txt",
+                    'w') as f:
+                f.write(output.getvalue())
 
     # 娴嬭瘯涓撶敤
     @classmethod

--
Gitblit v1.8.0