[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pytorctl/master] update consensus after resetting stats within the same job



commit e1266cb4d716a8a066ea3d92fb3d19305939a058
Author: aagbsn <aagbsn@xxxxxxxx>
Date:   Thu May 19 14:17:12 2011 -0700

    update consensus after resetting stats within the same job
---
 ScanSupport.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ScanSupport.py b/ScanSupport.py
index c425fd2..97c43a8 100644
--- a/ScanSupport.py
+++ b/ScanSupport.py
@@ -266,6 +266,8 @@ class SQLScanHandler(ScanHandler):
       cond.acquire()
       ScanHandler.reset_stats(self)
       SQLSupport.reset_all()
+      this.sql_consensus_listener.update_consensus()
+      this.sql_consensus_listener._update_rank_history(this.sql_consensus_listener.consensus.ns_map.iterkeys())
       cond.notify()
       cond.release()
     cond.acquire()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits