control.py: use get_buckets() instead of get_version() to measure ping time, because the latter changed recently

This commit is contained in:
Brian Warner 2008-11-22 23:13:23 -07:00
parent 3e25efc010
commit 2308440fb6

View File

@ -81,7 +81,7 @@ class ControlServer(Referenceable, service.Service):
return results
peerid, connection = everyone_left.pop(0)
start = time.time()
d = connection.callRemote("get_version")
d = connection.callRemote("get_buckets", "\x00"*16)
def _done(ignored):
stop = time.time()
elapsed = stop - start