Commit 54b0d9c6 authored by ZZH's avatar ZZH

fix lf_dev 2023-8-2

parent 20a1acad
......@@ -272,10 +272,10 @@ async def qual_history_service(start, end, intervel, slots, pid):
if slot in datas.keys():
for stats_item in stats_items:
value = datas[slot].get(stats_item, "")
if value and stats_item == "freq_dev_mean":
# if value and stats_item == "freq_dev_mean":
# 如果频率偏差保留两位小数之后为0了,那么直接返回0,防止出现-0.00 的情况
if abs(value) < 0.05:
value = 0
# if abs(value) < 0.05:
# value = 0
elec_data[stats_item].append(value)
else:
for stats_item in stats_items:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment