From: Brian Warner Date: Sun, 23 Nov 2008 06:13:23 +0000 (-0700) Subject: control.py: use get_buckets() instead of get_version() to measure ping time, because... X-Git-Url: https://git.rkrishnan.org/pf/content/COPYING.GPL?a=commitdiff_plain;h=2308440fb6df29eba2863b24c1a8f910c2cd8c60;p=tahoe-lafs%2Ftahoe-lafs.git control.py: use get_buckets() instead of get_version() to measure ping time, because the latter changed recently --- diff --git a/src/allmydata/control.py b/src/allmydata/control.py index b566231f..73756605 100644 --- a/src/allmydata/control.py +++ b/src/allmydata/control.py @@ -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