Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
54b0d9c6
Commit
54b0d9c6
authored
Aug 02, 2023
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lf_dev 2023-8-2
parent
20a1acad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
electric.py
unify_api/modules/electric/views/electric.py
+23
-23
No files found.
unify_api/modules/electric/views/electric.py
View file @
54b0d9c6
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment