diff options
Diffstat (limited to 'DistUpgrade/DistUpgradeView.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeView.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/DistUpgrade/DistUpgradeView.py b/DistUpgrade/DistUpgradeView.py index a42d2b8f..45c5521b 100644 --- a/DistUpgrade/DistUpgradeView.py +++ b/DistUpgrade/DistUpgradeView.py @@ -29,13 +29,12 @@ def FuzzyTimeToStr(sec): return _("%li minutes") % (sec/60) return _("%li seconds") % sec -def estimatedDownloadTime(self, size): +def estimatedDownloadTime(requiredDownload): """ get the estimated download time """ - requiredDownload = self.requiredDownload timeModem = requiredDownload/(56*1024/8) # 56 kbit timeDSL = requiredDownload/(1024*1024/8) # 1Mbit = 1024 kbit - s= _("The download will approximately take %s with a 56k modem and %s with " - "a 1Mbit DSL connection" % FuzzyTimeToStr(timeModem), FuzzyTimeToStr(timeDSL)) + s= _("This download will take about %s with a 56k modem and about %s with " + "a 1Mbit DSL connection" % (FuzzyTimeToStr(timeModem), FuzzyTimeToStr(timeDSL))) return s |
