Commit 2d0631fb by Guba Sándor

fix downloaded disk size to use virtual size on qcow2

parent b11847ec
......@@ -226,7 +226,7 @@ class Disk(object):
if ext == 'gz':
f.write(decompressor.flush())
f.flush()
self.size = os.path.getsize(disk_path)
self.size = Disk.get(self.dir, self.name).size
logger.debug("Download finished %s (%s bytes)",
self.name, self.size)
except AbortException:
......
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 sign in to comment