[or-cvs] r19418: {torctl} Make stream_bw debug output match control port ordering. (torctl/trunk/python/TorCtl)

mikeperry at seul.org mikeperry at seul.org
Mon May 4 08:31:51 UTC 2009


Author: mikeperry
Date: 2009-05-04 04:31:51 -0400 (Mon, 04 May 2009)
New Revision: 19418

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

Make stream_bw debug output match control port ordering.



Modified: torctl/trunk/python/TorCtl/PathSupport.py
===================================================================
--- torctl/trunk/python/TorCtl/PathSupport.py	2009-05-04 07:25:27 UTC (rev 19417)
+++ torctl/trunk/python/TorCtl/PathSupport.py	2009-05-04 08:31:51 UTC (rev 19418)
@@ -1534,8 +1534,8 @@
         self.streams[s.strm_id].port = s.target_port
 
   def stream_bw_event(self, s):
-    output = [s.event_name, str(s.strm_id), str(s.bytes_read),
-              str(s.bytes_written)]
+    output = [s.event_name, str(s.strm_id), str(s.bytes_written),
+              str(s.bytes_read)]
     plog("DEBUG", " ".join(output))
     if not s.strm_id in self.streams:
       plog("WARN", "BW event for unknown stream id: "+str(s.strm_id))



More information about the tor-commits mailing list