diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-01 10:11:06 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-01 10:11:06 +0200 |
| commit | 46ce7f8798bc963f1c647b21839488038a79d909 (patch) | |
| tree | a5fb5443b0bcdc02b35c5d83df16a06168911e38 /apt/progress/text.py | |
| parent | 941a9debfcf884aebc616053774d0fe94c2e8f59 (diff) | |
| parent | c8bd732d5cb8be16ae48f8a72a4ed8a266b4ce36 (diff) | |
| download | python-apt-46ce7f8798bc963f1c647b21839488038a79d909.tar.gz | |
merged from the debian-sid branch
Diffstat (limited to 'apt/progress/text.py')
| -rw-r--r-- | apt/progress/text.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt/progress/text.py b/apt/progress/text.py index d777837c..c5eec092 100644 --- a/apt/progress/text.py +++ b/apt/progress/text.py @@ -157,11 +157,10 @@ class AcquireProgress(base.AcquireProgress, TextProgress): shown = False tval = '%i%%' % percent - end = "" if self.current_cps: - eta = int(float(self.total_bytes - self.current_bytes) / - self.current_cps) + eta = long(float(self.total_bytes - self.current_bytes) / + self.current_cps) end = " %sB/s %s" % (apt_pkg.size_to_str(self.current_cps), apt_pkg.time_to_str(eta)) |
