commit 5c4c77bb0e0823f6fa9ae8046b86c911915265c9 Author: Ana Custura ana@netstat.org.uk Date: Thu Jul 9 15:56:40 2020 +0100
Updates analysis version to 3.0 --- onionperf/analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/onionperf/analysis.py b/onionperf/analysis.py index 2466aad..245d9ae 100644 --- a/onionperf/analysis.py +++ b/onionperf/analysis.py @@ -26,7 +26,7 @@ class OPAnalysis(Analysis):
def __init__(self, nickname=None, ip_address=None): super().__init__(nickname, ip_address) - self.json_db = {'type':'onionperf', 'version':'2.0', 'data':{}} + self.json_db = {'type' : 'onionperf', 'version' : '3.0', 'data' : {}} self.torctl_filepaths = []
def add_torctl_file(self, filepath): @@ -113,7 +113,7 @@ class OPAnalysis(Analysis): if 'type' not in db or 'version' not in db: logging.warning("'type' or 'version' not present in database") return None - elif db['type'] != 'onionperf' or str(db['version']) >= '3.': + elif db['type'] != 'onionperf' or str(db['version']) >= '4.': logging.warning("type or version not supported (type={0}, version={1})".format(db['type'], db['version'])) return None else:
tor-commits@lists.torproject.org