[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionperf/develop] Retrieve error_code from the stream_info dict
commit 89c8a8f826ee0dc460feb81f67e6bebfbbb9981f
Author: Ana Custura <ana@xxxxxxxxxxxxxx>
Date: Thu Jul 23 15:04:57 2020 +0100
Retrieve error_code from the stream_info dict
---
onionperf/visualization.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/onionperf/visualization.py b/onionperf/visualization.py
index 5e7f92b..daa5c3d 100644
--- a/onionperf/visualization.py
+++ b/onionperf/visualization.py
@@ -88,8 +88,8 @@ class TGenVisualization(Visualization):
s = stream_data["elapsed_seconds"]
if stream_data["stream_info"]["recvsize"] == "5242880" and "0.2" in s["payload_progress_recv"]:
stream["mbps"] = 4.194304 / (s["payload_progress_recv"]["0.2"] - s["payload_progress_recv"]["0.1"])
- if "error" in stream_data["transport_info"] and stream_data["transport_info"]["error"] != "NONE":
- error_code = stream_data["transport_info"]["error"]
+ if "error" in stream_data["stream_info"] and stream_data["stream_info"]["error"] != "NONE":
+ error_code = stream_data["stream_info"]["error"]
if "local" in stream_data["transport_info"] and len(stream_data["transport_info"]["local"].split(":")) > 2:
source_port = stream_data["transport_info"]["local"].split(":")[2]
if "unix_ts_end" in stream_data:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits