Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xlte
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
1
Merge Requests
1
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
Kirill Smelkov
xlte
Commits
43aac33e
Commit
43aac33e
authored
Mar 09, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: Cosmetics + minor
Noticed while developing support for E-UTRAN IP Throughtput.
parent
4b2c8c21
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
amari/kpi_test.py
amari/kpi_test.py
+2
-2
amari/xlog.py
amari/xlog.py
+2
-1
kpi.py
kpi.py
+1
-1
No files found.
amari/kpi_test.py
View file @
43aac33e
...
...
@@ -72,7 +72,7 @@ class tLogMeasure:
# _mok_init reinitializes ._mok with Measurement defaults.
def
_mok_init
(
t
):
t
.
_mok
=
Measurement
()
# init fields
handled by amari.kpi
to 0
# init fields
extracted by amari.kpi from stats
to 0
# this will be default values to verify against
for
field
in
(
'RRC.ConnEstabAtt.sum'
,
...
...
@@ -515,7 +515,7 @@ def test_LogMeasure_cc_wraparound():
t
.
xlog
(
jstats
(
1
,
{})
)
t
.
xlog
(
jstats
(
2
,
{
cc
:
13
})
)
t
.
xlog
(
jstats
(
3
,
{
cc
:
12
})
)
# cc↓ - should be reported
t
.
xlog
(
jstats
(
4
,
{
cc
:
140
})
)
# cc↑↑ - should s
hould s
tart afresh
t
.
xlog
(
jstats
(
4
,
{
cc
:
140
})
)
# cc↑↑ - should start afresh
t
.
xlog
(
jstats
(
5
,
{
cc
:
150
})
)
def
readok
(
τ
,
CC_value
):
...
...
amari/xlog.py
View file @
43aac33e
...
...
@@ -147,7 +147,7 @@ def xlog(ctx, wsuri, logspecv):
time
.
sleep
(
3
)
# _XLogger serves xlog implementation.
class
_XLogger
:
def
__init__
(
xl
,
wsuri
,
logspecv
):
xl
.
wsuri
=
wsuri
...
...
@@ -155,6 +155,7 @@ class _XLogger:
# emit saves line to the log.
def
emit
(
xl
,
line
):
assert
isinstance
(
line
,
str
)
assert
'
\
n
'
not
in
line
,
line
print
(
line
,
flush
=
True
)
...
...
kpi.py
View file @
43aac33e
...
...
@@ -76,7 +76,7 @@ class Calc:
pass
# MeasurementLog represent journal of performed Measurements.
# MeasurementLog represent
s
journal of performed Measurements.
#
# It semantically consists of
#
...
...
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