Commit 43aac33e authored by Kirill Smelkov's avatar Kirill Smelkov

*: Cosmetics + minor

Noticed while developing support for E-UTRAN IP Throughtput.
parent 4b2c8c21
......@@ -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 should start afresh
t.xlog( jstats(4, {cc: 140}) ) # cc↑↑ - should start afresh
t.xlog( jstats(5, {cc: 150}) )
def readok(τ, CC_value):
......
......@@ -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)
......
......@@ -76,7 +76,7 @@ class Calc:
pass
# MeasurementLog represent journal of performed Measurements.
# MeasurementLog represents journal of performed Measurements.
#
# It semantically consists of
#
......
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