未验证 提交 a8307be1 编写于 作者: G guochaorong 提交者: GitHub

Merge pull request #1196 from wanghaoshuang/fix_ocr

Fix _ce.py of ocr.
......@@ -47,9 +47,10 @@ def log_to_ce(log):
kpi_tracker[kpi.name] = kpi
for (kpi_name, kpi_value) in parse_log(log):
print(kpi_name, kpi_value)
kpi_tracker[kpi_name].add_record(kpi_value)
kpi_tracker[kpi_name].persist()
if kpi_name in kpi_tracker:
print(kpi_name, kpi_value)
kpi_tracker[kpi_name].add_record(kpi_value)
kpi_tracker[kpi_name].persist()
if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册