[tor-commits] [onionperf/develop] Clarify filter terminology
karsten at torproject.org
karsten at torproject.org
Wed Sep 16 15:15:08 UTC 2020
commit a466221c5b947bb894a36fd3e5472397f1b0b03e
Author: Ana Custura <ana at netstat.org.uk>
Date: Thu Sep 10 12:41:46 2020 +0100
Clarify filter terminology
---
onionperf/filtering.py | 2 +-
onionperf/visualization.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/onionperf/filtering.py b/onionperf/filtering.py
index 7ef6168..0ba9ebc 100644
--- a/onionperf/filtering.py
+++ b/onionperf/filtering.py
@@ -64,7 +64,7 @@ class Filtering(object):
keep = False
break
if not keep:
- tor_circuits[circuit_id]["filtered"] = True
+ tor_circuits[circuit_id]["filtered_out"] = True
tor_circuits[circuit_id] = dict(sorted(tor_circuit.items()))
def apply_filters(self, input_path, output_dir, output_file):
diff --git a/onionperf/visualization.py b/onionperf/visualization.py
index f5bc03f..2cd3161 100644
--- a/onionperf/visualization.py
+++ b/onionperf/visualization.py
@@ -147,7 +147,7 @@ class TGenVisualization(Visualization):
stream["error_code"] = "/".join(error_code_parts)
if "filters" in analysis.json_db.keys() and analysis.json_db["filters"]["tor/circuits"]:
- if tor_circuit and "filtered" not in tor_circuit.keys():
+ if tor_circuit and "filtered_out" not in tor_circuit.keys():
streams.append(stream)
else:
streams.append(stream)
More information about the tor-commits
mailing list