Details
Description
expectedCount=int(int(templates[0].size) / (1024**3))
expectedCount *= 2
if template[0].size is less that one GB , expectedCount will be 0
so expectedCount*=2 will not have any effect .
fixing expectedCount calculation:
self.templateSize = int((int(templates[0].size)2) / (1024*3))
expectedCount =self.templateSize