Blob Blame History Raw
# HG changeset patch
# User Cole Robinson <crobinso@redhat.com>
# Date 1267236785 18000
# Node ID cb28868d921336410bd70d47da74e4c064a6311a
# Parent  aaa7c90ac60063f1b717b53db6739851396f2d60
clone: Show storage progress capped at capacity, rather than allocation.

diff -r aaa7c90ac600 -r cb28868d9213 virtinst/Storage.py
--- a/virtinst/Storage.py	Fri Feb 26 18:43:49 2010 -0500
+++ b/virtinst/Storage.py	Fri Feb 26 21:13:05 2010 -0500
@@ -1146,7 +1146,7 @@
                 self._install_finished = False
                 t.start()
                 if meter:
-                    meter.start(size=self.allocation,
+                    meter.start(size=self.capacity,
                                 text=_("Allocating '%s'") % self.name)
 
                 if self.input_vol:
@@ -1155,7 +1155,7 @@
                     vol = self.pool.createXML(xml, 0)
 
                 if meter:
-                    meter.end(self.allocation)
+                    meter.end(self.capacity)
                 logging.debug("Storage volume '%s' install complete." %
                               self.name)
                 return vol