Showing
1 changed file
with
2 additions
and
3 deletions
@@ -92,12 +92,11 @@ def connect_close(): | @@ -92,12 +92,11 @@ def connect_close(): | ||
92 | 92 | ||
93 | #数据入库定时器 | 93 | #数据入库定时器 |
94 | def data_pull_timer(insert_data): | 94 | def data_pull_timer(insert_data): |
95 | - print insert_data | 95 | + print time.time() |
96 | for middleware,dbs in insert_data.items(): | 96 | for middleware,dbs in insert_data.items(): |
97 | for db,measurements in dbs.items(): | 97 | for db,measurements in dbs.items(): |
98 | for measurement,queue in measurements.items(): | 98 | for measurement,queue in measurements.items(): |
99 | - print queue | ||
100 | - #data_pull(queue,'Timer') | 99 | + data_pull(queue,'Timer') |
101 | Timer(Config.multi_insert_timeout,data_pull_timer,[insert_data]).start() | 100 | Timer(Config.multi_insert_timeout,data_pull_timer,[insert_data]).start() |
102 | 101 | ||
103 | #数据入库 | 102 | #数据入库 |
-
Please register or login to post a comment