re-add hash_queue_size function
This commit is contained in:
parent
789ca3693f
commit
51662b1e5b
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ class DHTHashAnnouncer(object):
|
||||||
self.hash_queue.remove(blob_hash)
|
self.hash_queue.remove(blob_hash)
|
||||||
defer.returnValue(result)
|
defer.returnValue(result)
|
||||||
|
|
||||||
|
def hash_queue_size(self):
|
||||||
|
return len(self.hash_queue)
|
||||||
|
|
||||||
def _show_announce_progress(self, size, start):
|
def _show_announce_progress(self, size, start):
|
||||||
queue_size = len(self.hash_queue)
|
queue_size = len(self.hash_queue)
|
||||||
average_blobs_per_second = float(size - queue_size) / (self.clock.seconds() - start)
|
average_blobs_per_second = float(size - queue_size) / (self.clock.seconds() - start)
|
||||||
|
|
Loading…
Reference in a new issue