[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionperf/develop] Fix a bug introduced by the TGen 1.0.0 update.
commit c761ac65aa71452a4ddd85137e4313c639e5fc63
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Tue Jul 14 10:31:14 2020 +0200
Fix a bug introduced by the TGen 1.0.0 update.
The bug was that we were using the wrong Analysis class in measure
mode:
AttributeError: 'Analysis' object has no attribute 'add_torctl_file'
---
onionperf/measurement.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onionperf/measurement.py b/onionperf/measurement.py
index 1540bac..9d84d4e 100644
--- a/onionperf/measurement.py
+++ b/onionperf/measurement.py
@@ -150,7 +150,7 @@ def logrotate_thread_task(writables, tgen_writable, torctl_writable, docroot, ni
public_measurement_ip_guess = util.get_ip_address()
# set up the analysis object with our log files
- anal = analysis.Analysis(nickname=nickname, ip_address=public_measurement_ip_guess)
+ anal = analysis.OPAnalysis(nickname=nickname, ip_address=public_measurement_ip_guess)
if tgen_writable is not None:
anal.add_tgen_file(tgen_writable.rotate_file(filename_datetime=next_midnight))
if torctl_writable is not None:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits