Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
wendelin-telecom
Commits
aa8a86c6
Commit
aa8a86c6
authored
Oct 21, 2024
by
Paul Graydon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin_telecom_base: Improve KPI calculation robustness
Improve error handling and reduce chunk size
parent
c53925b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
bt5/wendelin_telecom_base/ExtensionTemplateItem/portal_components/extension.erp5.OrsKpiUtils.py
...plateItem/portal_components/extension.erp5.OrsKpiUtils.py
+3
-0
bt5/wendelin_telecom_base/PathTemplateItem/portal_callables/DataAnalysisLine_calculateOrsKpi.py
...Item/portal_callables/DataAnalysisLine_calculateOrsKpi.py
+1
-1
No files found.
bt5/wendelin_telecom_base/ExtensionTemplateItem/portal_components/extension.erp5.OrsKpiUtils.py
View file @
aa8a86c6
...
@@ -13,6 +13,9 @@ def load_measurements(alogm):
...
@@ -13,6 +13,9 @@ def load_measurements(alogm):
# Invalid measurement: simply skip it
# Invalid measurement: simply skip it
pass
pass
measurement
=
alogm
.
read
()
measurement
=
alogm
.
read
()
except
amari_kpi
.
LogError
:
# Invalid measurement: simply skip it
pass
finally
:
finally
:
alogm
.
close
()
alogm
.
close
()
return
mlog
return
mlog
...
...
bt5/wendelin_telecom_base/PathTemplateItem/portal_callables/DataAnalysisLine_calculateOrsKpi.py
View file @
aa8a86c6
...
@@ -8,7 +8,7 @@ total_size = in_data_stream.getSize()
...
@@ -8,7 +8,7 @@ total_size = in_data_stream.getSize()
if
start
>=
total_size
:
if
start
>=
total_size
:
return
return
chunk_size
=
1024
*
1024
chunk_size
=
512
*
512
end
=
min
(
start
+
chunk_size
,
total_size
)
end
=
min
(
start
+
chunk_size
,
total_size
)
log_data
=
''
.
join
(
in_data_stream
.
readChunkList
(
start
,
end
))
log_data
=
''
.
join
(
in_data_stream
.
readChunkList
(
start
,
end
))
...
...
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