Commit 2c37fb9d authored by Christos Stavrakakis's avatar Christos Stavrakakis

Fix wrong count of reserved pool entries

Padding should not be considered when counting unavailable entries.
parent 958b0e14
......@@ -109,7 +109,7 @@ class PoolManager(object):
return self.pool.count(AVAILABLE)
def count_unavailable(self):
return self.pool.count(UNAVAILABLE)
return self.pool_size - self.count_available()
def count_reserved(self):
return self.reserved[:self.pool_size].count(UNAVAILABLE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment