mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-08 11:13:51 +00:00
fix length for limiter
This commit is contained in:
parent
27628d6ff4
commit
bb30f64dd5
@ -44,6 +44,7 @@ class Limiter(object):
|
||||
|
||||
def __init__(self, gen, limit):
|
||||
self.gen = islice(gen, limit)
|
||||
self.limit = limit
|
||||
|
||||
def __len__(self):
|
||||
return self.limit
|
||||
|
Loading…
Reference in New Issue
Block a user