[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19420: {torctl} Ok, I lied. This one is the inverse. But the rest are 100% c (torctl/trunk/python/TorCtl)
Author: mikeperry
Date: 2009-05-04 04:50:01 -0400 (Mon, 04 May 2009)
New Revision: 19420
Modified:
torctl/trunk/python/TorCtl/SQLSupport.py
Log:
Ok, I lied. This one is the inverse. But the rest are 100%
correct, I swear.
Modified: torctl/trunk/python/TorCtl/SQLSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/SQLSupport.py 2009-05-04 08:32:43 UTC (rev 19419)
+++ torctl/trunk/python/TorCtl/SQLSupport.py 2009-05-04 08:50:01 UTC (rev 19420)
@@ -382,9 +382,9 @@
RouterStats.table.c.circ_bi_ratio:
(1-RouterStats.table.c.circ_bi_rate)/(1-avg_bi_rate),
RouterStats.table.c.ext_ratio:
- (RouterStats.table.c.avg_first_ext)/(avg_ext),
+ avg_ext/RouterStats.table.c.avg_first_ext,
RouterStats.table.c.sbw_ratio:
- (RouterStats.table.c.sbw)/(avg_sbw)}).execute()
+ RouterStats.table.c.sbw/avg_sbw}).execute()
tc_session.commit()
_compute_ratios = Callable(_compute_ratios)