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

[or-cvs] r18139: {torflow} Have statssplitter do the entire 100% of the network. (torflow/trunk/NetworkScanners)



Author: mikeperry
Date: 2009-01-16 19:40:22 -0500 (Fri, 16 Jan 2009)
New Revision: 18139

Modified:
   torflow/trunk/NetworkScanners/statsplitter.py
Log:

Have statssplitter do the entire 100% of the network.



Modified: torflow/trunk/NetworkScanners/statsplitter.py
===================================================================
--- torflow/trunk/NetworkScanners/statsplitter.py	2009-01-17 00:17:59 UTC (rev 18138)
+++ torflow/trunk/NetworkScanners/statsplitter.py	2009-01-17 00:40:22 UTC (rev 18139)
@@ -11,7 +11,7 @@
 from TorCtl.PathSupport import *
 import atexit
 
-TorUtil.loglevel = "NOTICE"
+TorUtil.loglevel = "INFO"
 
 
 def cleanup(c, f):
@@ -51,7 +51,7 @@
   exit_bw = 0
   heavy = 0
   dirs = 0
-  nodes_up = 0
+  nodes_up = 0.0000000005 # shhh. dirty hack for div 0 
   up = 0
   
   for r in sorted_rlist:
@@ -68,10 +68,10 @@
         heavy += 1
       if dir_rst.r_is_ok(r):
         dirs += 1
-  
+
   print str(start)+"-"+str(stop)+": N: "+str(nodes)+", Bw: "+str(round(bw/(1024*1024.0), 2))+", X: "+str(exits)+", XBw: "+str(round(exit_bw/(1024*1024.0),2))+", BT: "+str(heavy)+", Dirs:"+str(dirs)+", Up: "+str(round(up/nodes_up/60/60/24, 2))
 
-for i in xrange(0,80,3):
+for i in xrange(0,100,3):
   check(i,i+3)
 
 def check_entropy(rlist, clipping_point):