Blame virtinst-0.500.2-improve-clone-progress.patch

a9021d2
# HG changeset patch
a9021d2
# User Cole Robinson <crobinso@redhat.com>
a9021d2
# Date 1267236785 18000
a9021d2
# Node ID cb28868d921336410bd70d47da74e4c064a6311a
a9021d2
# Parent  aaa7c90ac60063f1b717b53db6739851396f2d60
a9021d2
clone: Show storage progress capped at capacity, rather than allocation.
a9021d2
a9021d2
diff -r aaa7c90ac600 -r cb28868d9213 virtinst/Storage.py
a9021d2
--- a/virtinst/Storage.py	Fri Feb 26 18:43:49 2010 -0500
a9021d2
+++ b/virtinst/Storage.py	Fri Feb 26 21:13:05 2010 -0500
a9021d2
@@ -1146,7 +1146,7 @@
a9021d2
                 self._install_finished = False
a9021d2
                 t.start()
a9021d2
                 if meter:
a9021d2
-                    meter.start(size=self.allocation,
a9021d2
+                    meter.start(size=self.capacity,
a9021d2
                                 text=_("Allocating '%s'") % self.name)
a9021d2
 
a9021d2
                 if self.input_vol:
a9021d2
@@ -1155,7 +1155,7 @@
a9021d2
                     vol = self.pool.createXML(xml, 0)
a9021d2
 
a9021d2
                 if meter:
a9021d2
-                    meter.end(self.allocation)
a9021d2
+                    meter.end(self.capacity)
a9021d2
                 logging.debug("Storage volume '%s' install complete." %
a9021d2
                               self.name)
a9021d2
                 return vol