[tor-commits] [pytorctl/master] Don't round the circ fail rate.

mikeperry at torproject.org mikeperry at torproject.org
Fri Nov 4 22:42:25 UTC 2011


commit 391b4399adda91e8b68ffd6e1fa294efe846debd
Author: Mike Perry <mikeperry-git at fscked.org>
Date:   Fri Nov 4 15:41:54 2011 -0700

    Don't round the circ fail rate.
---
 SQLSupport.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/SQLSupport.py b/SQLSupport.py
index 40cbdf7..e50dd71 100644
--- a/SQLSupport.py
+++ b/SQLSupport.py
@@ -674,7 +674,7 @@ class RouterStats(Entity):
       f.write("node_id=$"+s.router.idhex+" nick="+s.router.nickname)
       f.write(" strm_bw="+str(cvt(s.sbw,0)))
       f.write(" filt_bw="+str(cvt(s.filt_sbw,0)))
-      f.write(" circ_fail_rate="+str(cvt(s.circ_to_rate,0)))
+      f.write(" circ_fail_rate="+str(s.circ_to_rate))
       f.write(" desc_bw="+str(int(cvt(s.avg_desc_bw,0))))
       f.write(" ns_bw="+str(int(cvt(s.avg_bw,0)))+"\n")
 



More information about the tor-commits mailing list