summaryrefslogtreecommitdiff
path: root/apt/progress/old.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/progress/old.py')
-rw-r--r--apt/progress/old.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt/progress/old.py b/apt/progress/old.py
index 4bd79f2e..364cd2ce 100644
--- a/apt/progress/old.py
+++ b/apt/progress/old.py
@@ -149,10 +149,11 @@ class TextFetchProgress(FetchProgress):
Return True to continue or False to cancel.
"""
FetchProgress.pulse(self)
+
if self.currentCPS > 0:
s = "[%2.f%%] %sB/s %s" % (self.percent,
- apt_pkg.size_to_str(int(self.currentCPS)),
- apt_pkg.time_to_str(int(self.eta)))
+ apt_pkg.size_to_str(self.currentCPS),
+ apt_pkg.time_to_str(long(self.eta)))
else:
s = "%2.f%% [Working]" % (self.percent)
print "\r%s" % (s),