Rev 2: Remove a bunch of extra times that are strictly local and always take 0.0s in http://bzr.arbash-meinel.com/plugins/hello

John Arbash Meinel john at arbash-meinel.com
Fri Oct 26 17:25:08 BST 2007


At http://bzr.arbash-meinel.com/plugins/hello

------------------------------------------------------------
revno: 2
revision-id:john at arbash-meinel.com-20071026162507-2wayirmfu66cie3k
parent: john at arbash-meinel.com-20071026162342-q0kwteylii2zrkw5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: hello
timestamp: Fri 2007-10-26 11:25:07 -0500
message:
  Remove a bunch of extra times that are strictly local and always take 0.0s
modified:
  __init__.py                    __init__.py-20071026162324-fyzesbthcgxhqy4b-1
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2007-10-26 16:23:42 +0000
+++ b/__init__.py	2007-10-26 16:25:07 +0000
@@ -49,9 +49,7 @@
         hello_time = time.time()
         print 'response: %s' % (hello_response,)
         print "get_transport: %.3fs" % (t_time - start,)
-        print "get_shared_medium: %.3fs" % (medium_time - t_time,)
-        print "client: %.3fs" % (client_time - medium_time,)
-        print "hello: %.3fs" % (hello_time - client_time,)
+        print "first hello: %.3fs" % (hello_time - client_time,)
 
         if ping:
             total_time = 0.0
@@ -63,7 +61,7 @@
                 total_time += cur_time - base_time
                 print 'hello: %.3fs\r' % (cur_time - base_time,),
             avg_time = total_time / n_count
-            print 'Average ping: %.3fms' % (avg_time * 1000.0)
+            print 'Average ping: %.1fms' % (avg_time * 1000.0)
             hello_delta = hello_time - client_time
             print 'Connect time: %.3fs' % (hello_delta - avg_time,)
 



More information about the bazaar-commits mailing list