From 5ce12f95a64150152f859e8497516f2876846dad Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 29 Mar 2006 17:43:41 +0200 Subject: * start showing the progress eta when 1.0 is reached --- DistUpgrade/DistUpgradeViewGtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DistUpgrade/DistUpgradeViewGtk.py') 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 -- cgit v1.2.3