mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +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
|
||||
|
||||
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._used_peers.add(peerid)
|
||||
if not self._running:
|
||||
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:
|
||||
self._status.sharemap[peerid] = set()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user