mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
mutable-retrieve: only record server response times for queries that we don't ignore
This commit is contained in:
parent
8160a4f2f2
commit
f46cb5cd6d
@ -471,15 +471,16 @@ class Retrieve:
|
|||||||
return verifier
|
return verifier
|
||||||
|
|
||||||
def _got_results(self, datavs, peerid, readsize, stuff, started):
|
def _got_results(self, datavs, peerid, readsize, stuff, started):
|
||||||
elapsed = time.time() - started
|
|
||||||
if peerid not in self._status.timings["fetch_per_server"]:
|
|
||||||
self._status.timings["fetch_per_server"][peerid] = []
|
|
||||||
self._status.timings["fetch_per_server"][peerid].append(elapsed)
|
|
||||||
self._queries_outstanding.discard(peerid)
|
self._queries_outstanding.discard(peerid)
|
||||||
self._used_peers.add(peerid)
|
self._used_peers.add(peerid)
|
||||||
if not self._running:
|
if not self._running:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
elapsed = time.time() - started
|
||||||
|
if peerid not in self._status.timings["fetch_per_server"]:
|
||||||
|
self._status.timings["fetch_per_server"][peerid] = []
|
||||||
|
self._status.timings["fetch_per_server"][peerid].append(elapsed)
|
||||||
|
|
||||||
if peerid not in self._status.sharemap:
|
if peerid not in self._status.sharemap:
|
||||||
self._status.sharemap[peerid] = set()
|
self._status.sharemap[peerid] = set()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user