From 56b7833ccb008466ba273837103387fd0f24a7a7 Mon Sep 17 00:00:00 2001 From: alrevuelta Date: Thu, 19 Oct 2023 16:41:26 +0200 Subject: [PATCH] more --- rln-delay-simulations/analyze.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rln-delay-simulations/analyze.py b/rln-delay-simulations/analyze.py index 6f240fb..b05786e 100644 --- a/rln-delay-simulations/analyze.py +++ b/rln-delay-simulations/analyze.py @@ -9,11 +9,11 @@ latencies = [] with open(file, "r") as file: for line in file.readlines(): if field in line: - seq = int(line.strip().split("seq=")[1].split(" ")[0]) # first message bias the latency due to tcp flow control - if seq in [0]: - continue - seq = line.strip().split("seq=")[1].split(" ")[0] + if "seq=" in line: + seq = int(line.strip().split("seq=")[1].split(" ")[0]) + if seq in [0]: + continue x = line.strip().split(field)[1].split(" ")[0] latencies.append(int(x))