diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-03-29 17:43:41 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-03-29 17:43:41 +0200 |
| commit | 5ce12f95a64150152f859e8497516f2876846dad (patch) | |
| tree | 77012c3fd2572e3b79d64525e1fce64cc97eaa95 /DistUpgrade/DistUpgradeViewGtk.py | |
| parent | 8d92e689e345e27a7dbcafccc485fca28977da4b (diff) | |
| download | python-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.py | 2 |
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 |
