summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-03-29 17:43:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-03-29 17:43:41 +0200
commit5ce12f95a64150152f859e8497516f2876846dad (patch)
tree77012c3fd2572e3b79d64525e1fce64cc97eaa95 /DistUpgrade/DistUpgradeViewGtk.py
parent8d92e689e345e27a7dbcafccc485fca28977da4b (diff)
downloadpython-apt-5ce12f95a64150152f859e8497516f2876846dad.tar.gz
* start showing the progress eta when 1.0 is reached
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py
index 01c43051..4ce026c8 100644
--- a/DistUpgrade/DistUpgradeViewGtk.py
+++ b/DistUpgrade/DistUpgradeViewGtk.py
@@ -203,7 +203,7 @@ class GtkInstallProgressAdapter(InstallProgress):
self.progress.set_fraction(float(self.percent)/100.0)
self.label_status.set_text(status.strip())
# start showing when we gathered some data
- if percent > 2.0:
+ if percent > 1.0:
delta = time.time() - self.start_time
time_per_percent = (float(delta)/percent)
eta = (100.0 - self.percent) * time_per_percent