Skip to content

Commit 3992980

Browse files
committed
ft-analyzer fix SEQ_NUMBER prediction typo
1 parent 24f13f3 commit 3992980

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tools/ft-analyzer/ftanalyzer/events/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def create_event_queue(
272272
# accurate expected EXPORT_TIME
273273
chunk["EXPORT_TIME"] = chunk["END_TIME"] // 1000 + inactive_timeout + 1
274274
# approximate SEQ_NUMBER
275-
chunk["SEQ_NUMER"] = chunk["EXPORT_TIME"] % 32
275+
chunk["SEQ_NUMBER"] = chunk["EXPORT_TIME"] % 32
276276
# random MSG_LENGTH
277277
chunk["MSG_LENGTH"] = random.randint(100, 2048)
278278

tools/ft-analyzer/ftanalyzer/models/statistical_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,7 @@ def validate(
369369
rule.segment,
370370
value,
371371
reference,
372-
round(
373-
abs(np.int64(value) - np.int64(reference)) / reference, 4
374-
),
372+
round(abs(int(value) - int(reference)) / reference, 4),
375373
)
376374
)
377375

0 commit comments

Comments
 (0)