[or-cvs] r19417: {torctl} Ignore down routers. (torctl/trunk/python/TorCtl)

mikeperry at seul.org mikeperry at seul.org
Mon May 4 07:25:27 UTC 2009


Author: mikeperry
Date: 2009-05-04 03:25:27 -0400 (Mon, 04 May 2009)
New Revision: 19417

Modified:
   torctl/trunk/python/TorCtl/SQLSupport.py
Log:

Ignore down routers.



Modified: torctl/trunk/python/TorCtl/SQLSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/SQLSupport.py	2009-05-04 07:25:09 UTC (rev 19416)
+++ torctl/trunk/python/TorCtl/SQLSupport.py	2009-05-04 07:25:27 UTC (rev 19417)
@@ -575,6 +575,7 @@
     for idhex in idlist:
       if idhex not in self.consensus.routers: continue
       rc = self.consensus.routers[idhex]
+      if rc.down: continue
       r = Router.query.options(eagerload('bw_history')).filter_by(
                                   idhex=idhex).one()
       bwh = BwHistory(router=r, rank=rc.list_rank, bw=rc.bw, 



More information about the tor-commits mailing list